new six version M.Z.
This commit is contained in:
16
tecs/term.h
16
tecs/term.h
@@ -1,6 +1,8 @@
|
||||
#ifndef TERM_H_
|
||||
#define TERM_H_
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void term_reg_socket(int fd);
|
||||
/* register socket */
|
||||
|
||||
@@ -18,4 +20,18 @@ 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 */
|
||||
|
||||
char *term_fgets(char *buf, int size, FILE *fil);
|
||||
/* fgets without newline */
|
||||
|
||||
void term_read_hist(char *id);
|
||||
/* read history from temporary file with id */
|
||||
|
||||
void term_save_hist(int trimlast);
|
||||
/* store history (without last line if trimlast) */
|
||||
|
||||
void term_off(void);
|
||||
|
||||
#endif /* TERM_H_ */
|
||||
|
||||
Reference in New Issue
Block a user