diff options
Diffstat (limited to 'src/prototypes.h')
-rw-r--r-- | src/prototypes.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/prototypes.h b/src/prototypes.h index 9c5eec4..a084d32 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -1,6 +1,6 @@ /* ansi.c */ extern int ansi_dispatch(ANSI *a, Context *c); -extern ANSI *ansi_new_from_terminal(TTY *t); +extern ANSI *ansi_new_from_terminal(TTY *t, int utf8); /* crt.c */ extern void crt_erase(CRT *c, CRT_Pos s, CRT_Pos e, int ea, int color); extern void crt_cls(CRT *c); @@ -37,7 +37,7 @@ extern void vt102_change_attr(VT102 *v, char *na); extern void vt102_parse_attr_string(VT102 *v, char *buf, int len); extern void vt102_save_state(VT102 *v); extern void vt102_restore_state(VT102 *v); -extern void vt102_regular_char(Context *c, VT102 *v, char ch); +extern void vt102_regular_char(Context *c, VT102 *v, int ch); extern void vt102_scs(Context *c, int g, int s); extern void vt102_parse_esc(Context *c, int ch); extern void vt102_parse_csi(Context *c, char *buf, int len); @@ -90,8 +90,8 @@ extern int wrap_read(int fd, void *buf, int len); extern int wrap_write(int fd, void *buf, int len); extern void set_nonblocking(int fd); extern void set_blocking(int fd); -extern void raw_termios(struct termios *termios); extern void default_termios(struct termios *termios); +extern void client_termios(struct termios *termios); /* log.c */ extern Log *file_log_new(char *fn); extern void log_f(Log *log, char *fmt, ...); @@ -158,5 +158,6 @@ extern void serial_lock_free(Serial_lock *l); extern Serial_lock *serial_lock_new(char *dev, int mode); /* utf8.c */ extern void utf8_flush(Context *c); -extern void utf8_parse(Context *c, int ch); +extern void utf8_parse(Context *c, uint32_t ch); extern UTF8 *utf8_new(void); +extern void utf8_emit(TTY *t, int ch); |