mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add missing options to show configuration
This commit is contained in:
parent
51bfa68bdd
commit
b05f38abd0
6 changed files with 64 additions and 11 deletions
16
src/script.c
16
src/script.c
|
|
@ -35,6 +35,7 @@
|
|||
#include "tty.h"
|
||||
#include "xymodem.h"
|
||||
#include "log.h"
|
||||
#include "script.h"
|
||||
|
||||
#define MAX_BUFFER_SIZE 2000 // Maximum size of circular buffer
|
||||
|
||||
|
|
@ -523,3 +524,18 @@ void script_run(int fd)
|
|||
|
||||
lua_close(L);
|
||||
}
|
||||
|
||||
const char *script_run_state_to_string(script_run_t state)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case SCRIPT_RUN_ONCE:
|
||||
return "once";
|
||||
case SCRIPT_RUN_ALWAYS:
|
||||
return "always";
|
||||
case SCRIPT_RUN_NEVER:
|
||||
return "never";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue