Reverse logic so when network logging, it by default does not log locally.
[oweals/busybox.git] / cmdedit.h
1 #ifndef CMDEDIT_H
2 #define CMDEDIT_H
3
4 #ifdef BB_FEATURE_SH_COMMAND_EDITING
5 /* unix systems can #define POSIX to use termios, otherwise 
6  * the bsd or sysv interface will be used 
7  */
8
9 #include <stddef.h>
10
11 typedef size_t (*cmdedit_strwidth_proc)(char *);
12
13 void cmdedit_init(void);
14 void cmdedit_terminate(void);
15 void cmdedit_read_input(char* promptStr, char* command);                /* read a line of input */
16 void cmdedit_setwidth(int);             /* specify width of screen */
17 void cmdedit_histadd(char *);           /* adds entries to hist */
18 void cmdedit_strwidth(cmdedit_strwidth_proc);   /* to bind cmdedit_strlen */
19
20 extern int      (*cmdedit_in_hook)(char *);
21 extern int      (*cmdedit_out_hook)(char *);
22 extern int      (*cmdedit_tab_hook)(char *, int, int *);
23
24 #endif /* BB_FEATURE_SH_COMMAND_EDITING */
25
26 #endif /* CMDEDIT_H */