tb Enable/disable command logging dynamically + setlogcmds builtin

This commit is contained in:
2025-10-18 10:48:31 +02:00
parent d136c001df
commit a46da0a7ae
6 changed files with 56 additions and 21 deletions

20
user/tb/config.h Normal file
View File

@ -0,0 +1,20 @@
#ifndef TB_CONFIG_H_
#define TB_CONFIG_H_
typedef struct {
char *modestr;
enum {
MODE_INTERACTIVE = 1,
MODE_RUNFILE = 2,
MODE_RUNSTRING = 3,
} mode;
char *filepath;
bool logcmds;
char *runstring;
} Config;
extern Config CONFIG;
#endif // TB_CONFIG_H_