=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/client.c,v retrieving revision 1.141 retrieving revision 1.142 diff -c -r1.141 -r1.142 *** src/usr.bin/tmux/client.c 2020/04/13 08:26:27 1.141 --- src/usr.bin/tmux/client.c 2020/04/20 13:25:36 1.142 *************** *** 1,4 **** ! /* $OpenBSD: client.c,v 1.141 2020/04/13 08:26:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: client.c,v 1.142 2020/04/20 13:25:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 57,63 **** static __dead void client_exec(const char *,const char *); static int client_get_lock(char *); static int client_connect(struct event_base *, const char *, int); ! static void client_send_identify(const char *, const char *); static void client_signal(int); static void client_dispatch(struct imsg *, void *); static void client_dispatch_attached(struct imsg *); --- 57,63 ---- static __dead void client_exec(const char *,const char *); static int client_get_lock(char *); static int client_connect(struct event_base *, const char *, int); ! static void client_send_identify(const char *, const char *, int); static void client_signal(int); static void client_dispatch(struct imsg *, void *); static void client_dispatch_attached(struct imsg *); *************** *** 233,239 **** /* Client main loop. */ int ! client_main(struct event_base *base, int argc, char **argv, int flags) { struct cmd_parse_result *pr; struct msg_command *data; --- 233,239 ---- /* Client main loop. */ int ! client_main(struct event_base *base, int argc, char **argv, int flags, int feat) { struct cmd_parse_result *pr; struct msg_command *data; *************** *** 340,346 **** } /* Send identify messages. */ ! client_send_identify(ttynam, cwd); /* Send first command. */ if (msg == MSG_COMMAND) { --- 340,346 ---- } /* Send identify messages. */ ! client_send_identify(ttynam, cwd, feat); /* Send first command. */ if (msg == MSG_COMMAND) { *************** *** 406,412 **** /* Send identify messages to server. */ static void ! client_send_identify(const char *ttynam, const char *cwd) { const char *s; char **ss; --- 406,412 ---- /* Send identify messages to server. */ static void ! client_send_identify(const char *ttynam, const char *cwd, int feat) { const char *s; char **ss; *************** *** 419,424 **** --- 419,425 ---- if ((s = getenv("TERM")) == NULL) s = ""; proc_send(client_peer, MSG_IDENTIFY_TERM, -1, s, strlen(s) + 1); + proc_send(client_peer, MSG_IDENTIFY_FEATURES, -1, &feat, sizeof feat); proc_send(client_peer, MSG_IDENTIFY_TTYNAME, -1, ttynam, strlen(ttynam) + 1);