aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-02-17 07:18:36 +0000
committernicm <nicm>2021-02-17 07:18:36 +0000
commitaf3ffa9c41936078d27b5ba1f96cec67850f98cb (patch)
tree46ea40336e88d204e72ac5056eb930aadacb3cba /tmux.h
parentd768fc2553c2bdec6bb7b026ffffdaee0dd102f4 (diff)
downloadrtmux-af3ffa9c41936078d27b5ba1f96cec67850f98cb.tar.gz
rtmux-af3ffa9c41936078d27b5ba1f96cec67850f98cb.tar.bz2
rtmux-af3ffa9c41936078d27b5ba1f96cec67850f98cb.zip
Move the call to setupterm() into the client and have it pass the
results to the server over imsg, means the server does not need to enter ncurses or read terminfo db. Old clients will not work with a new server.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 18921f6e..88c6d30e 100644
--- a/tmux.h
+++ b/tmux.h
@@ -500,6 +500,7 @@ enum msgtype {
MSG_IDENTIFY_FEATURES,
MSG_IDENTIFY_STDOUT,
MSG_IDENTIFY_LONGFLAGS,
+ MSG_IDENTIFY_TERMINFO,
MSG_COMMAND = 200,
MSG_DETACH,
@@ -1603,6 +1604,8 @@ struct client {
char *term_name;
int term_features;
char *term_type;
+ char **term_caps;
+ u_int term_ncaps;
char *ttyname;
struct tty tty;
@@ -2167,8 +2170,12 @@ extern struct tty_terms tty_terms;
u_int tty_term_ncodes(void);
void tty_term_apply(struct tty_term *, const char *, int);
void tty_term_apply_overrides(struct tty_term *);
-struct tty_term *tty_term_create(struct tty *, char *, int *, int, char **);
+struct tty_term *tty_term_create(struct tty *, char *, char **, u_int, int *,
+ char **);
void tty_term_free(struct tty_term *);
+int tty_term_read_list(const char *, int, char ***, u_int *,
+ char **);
+void tty_term_free_list(char **, u_int);
int tty_term_has(struct tty_term *, enum tty_code_code);
const char *tty_term_string(struct tty_term *, enum tty_code_code);
const char *tty_term_string1(struct tty_term *, enum tty_code_code, int);