summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 190a590..d800b20 100644
--- a/src/config.h
+++ b/src/config.h
@@ -84,6 +84,7 @@ enum {
LT_OPT_BRACES,
LT_OPT_ENABLE_ARGS,
LT_OPT_DETAIL_ARGS,
+ LT_OPT_OUTPUT_TTY,
};
struct lt_config_opt {
@@ -165,6 +166,9 @@ struct lt_config_app {
int csort;
+ int output_tty;
+ char output_tty_file[LT_MAXFILE];
+
struct lt_thread *threads;
struct lt_thread *iter;
};
@@ -351,6 +355,12 @@ struct lt_symbol* lt_symbol_get(struct lt_config_shared *cfg,
struct lt_config_opt *lt_config_opt_new(int idx, char *sval, long nval);
int lt_config_opt_process(struct lt_config_app *cfg, struct lt_list_head *list);
+/* tty */
+int tty_master(struct lt_config_app *cfg);
+int tty_init(struct lt_config_app *cfg, int master);
+int tty_restore(struct lt_config_app *cfg);
+int tty_process(struct lt_config_app *cfg, int master);
+
#define PRINT(fmt, args...) \
do { \
char lpbuf[1024]; \