diff options
author | nicm <nicm> | 2021-02-17 07:18:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-02-17 07:18:36 +0000 |
commit | af3ffa9c41936078d27b5ba1f96cec67850f98cb (patch) | |
tree | 46ea40336e88d204e72ac5056eb930aadacb3cba /tty.c | |
parent | d768fc2553c2bdec6bb7b026ffffdaee0dd102f4 (diff) | |
download | rtmux-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 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -249,8 +249,8 @@ tty_open(struct tty *tty, char **cause) { struct client *c = tty->client; - tty->term = tty_term_create(tty, c->term_name, &c->term_features, - c->fd, cause); + tty->term = tty_term_create(tty, c->term_name, c->term_caps, + c->term_ncaps, &c->term_features, cause); if (tty->term == NULL) { tty_close(tty); return (-1); |