diff options
author | nicm <nicm> | 2020-01-12 21:07:07 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-01-12 21:07:07 +0000 |
commit | 193e637de050e3757698812e9a87b869c87def6c (patch) | |
tree | c84c8d7a796612b66f7ad9cefc286267bd86ec7a /tmux.h | |
parent | deb734c7f61c36e18ccc2e4fdab4f06a90575fc9 (diff) | |
download | rtmux-193e637de050e3757698812e9a87b869c87def6c.tar.gz rtmux-193e637de050e3757698812e9a87b869c87def6c.tar.bz2 rtmux-193e637de050e3757698812e9a87b869c87def6c.zip |
The terminal type was never as much use as I expected so remove it in
favour of a couple of flags for the features used (DECSLRM and DECFRA).
Also rename the flag for no xenl to be more obvious while here.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 25 |
1 files changed, 4 insertions, 21 deletions
@@ -1168,7 +1168,9 @@ struct tty_term { struct tty_code *codes; #define TERM_256COLOURS 0x1 -#define TERM_EARLYWRAP 0x2 +#define TERM_NOXENL 0x2 +#define TERM_DECSLRM 0x4 +#define TERM_DECFRA 0x8 int flags; LIST_ENTRY(tty_term) entry; @@ -1230,16 +1232,6 @@ struct tty { struct tty_term *term; char *term_name; int term_flags; - enum { - TTY_VT100, - TTY_VT101, - TTY_VT102, - TTY_VT220, - TTY_VT320, - TTY_VT420, - TTY_VT520, - TTY_UNKNOWN - } term_type; u_int mouse_last_x; u_int mouse_last_y; @@ -1253,15 +1245,6 @@ struct tty { struct event key_timer; struct tty_key *key_tree; }; -#define TTY_TYPES \ - { "VT100", \ - "VT101", \ - "VT102", \ - "VT220", \ - "VT320", \ - "VT420", \ - "VT520", \ - "Unknown" } /* TTY command context. */ struct tty_ctx { @@ -1992,7 +1975,7 @@ void tty_draw_line(struct tty *, struct window_pane *, struct screen *, int tty_open(struct tty *, char **); void tty_close(struct tty *); void tty_free(struct tty *); -void tty_set_type(struct tty *, int); +void tty_set_flags(struct tty *, int); void tty_write(void (*)(struct tty *, const struct tty_ctx *), struct tty_ctx *); void tty_cmd_alignmenttest(struct tty *, const struct tty_ctx *); |