new vers.
This commit is contained in:
16
tecs/term.h
16
tecs/term.h
@@ -9,7 +9,7 @@ void term_reg_socket(int socket);
|
||||
void term_unr_socket(int socket);
|
||||
/* unregister socket */
|
||||
|
||||
int term_raw_key(char *key, int msecTmo);
|
||||
int term_raw_key(int *key, int msecTmo);
|
||||
|
||||
int term_wait_socket(int socket, int msecTmo);
|
||||
/* wait for a read event on socket or timeout
|
||||
@@ -18,14 +18,14 @@ int term_wait_socket(int socket, int msecTmo);
|
||||
or 0 for timeout
|
||||
*/
|
||||
|
||||
int term_get_key(char *key, int msecTmo);
|
||||
int term_get_key(int *key, int msecTmo);
|
||||
|
||||
void term_clear(void);
|
||||
|
||||
int term_get_line(char *buf, int size, int *pos, char *prompt, fd_set *mask);
|
||||
|
||||
FILE *term_open_pref(char *head, char *mode);
|
||||
/* open a user specific preferences file */
|
||||
FILE *term_open_pref(int temp, char *head, char *mode);
|
||||
/* open a user specific preferences or temporary file */
|
||||
|
||||
char *term_fgets(char *buf, int size, FILE *fil);
|
||||
/* fgets without newline */
|
||||
@@ -38,4 +38,12 @@ void term_save_hist(int trimlast);
|
||||
|
||||
void term_off(void);
|
||||
|
||||
void term_define_key(char *cmd, int keyArg);
|
||||
|
||||
void term_save_keys(FILE *fil, void (*out)(char *));
|
||||
/* save keys on file */
|
||||
|
||||
void term_load_keys(FILE *fil, void (*out)(char *));
|
||||
/* load keys on file */
|
||||
|
||||
#endif /* TERM_H_ */
|
||||
|
||||
Reference in New Issue
Block a user