diff options
author | nicm <nicm> | 2017-02-10 12:59:18 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-02-10 12:59:18 +0000 |
commit | d22c15107ba3bd019cfbc3e83cd1b12acf258029 (patch) | |
tree | 53b6c591d5d478cc99c5651e908a6605c833a40a /tty-keys.c | |
parent | c6a3446398648fc2cc3682c351b57b9bfe5bc5f0 (diff) | |
download | rtmux-d22c15107ba3bd019cfbc3e83cd1b12acf258029.tar.gz rtmux-d22c15107ba3bd019cfbc3e83cd1b12acf258029.tar.bz2 rtmux-d22c15107ba3bd019cfbc3e83cd1b12acf258029.zip |
Don't use a bufferevent for the tty, so we can keep better track of what
is being written and when.
Also a manpage typo fix from jmc@.
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -532,8 +532,8 @@ tty_keys_next(struct tty *tty) key_code key; /* Get key buffer. */ - buf = EVBUFFER_DATA(tty->event->input); - len = EVBUFFER_LENGTH(tty->event->input); + buf = EVBUFFER_DATA(tty->in); + len = EVBUFFER_LENGTH(tty->in); if (len == 0) return (0); @@ -645,7 +645,7 @@ complete_key: key = (key & KEYC_MASK_MOD) | KEYC_BSPACE; /* Remove data from buffer. */ - evbuffer_drain(tty->event->input, size); + evbuffer_drain(tty->in, size); /* Remove key timer. */ if (event_initialized(&tty->key_timer)) @@ -671,7 +671,7 @@ discard_key: log_debug("discard key %.*s %#llx", (int)size, buf, key); /* Remove data from buffer. */ - evbuffer_drain(tty->event->input, size); + evbuffer_drain(tty->in, size); return (1); } |