From a35ea97e2c84e2d88e1566a70ea6d80e28b41201 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 12 Jun 2021 17:57:02 -0400 Subject: [PATCH] remove obsolete comment in handle_input() --- src/lib/input.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/input.c b/src/lib/input.c index f01a23c34..5d7fca170 100644 --- a/src/lib/input.c +++ b/src/lib/input.c @@ -388,12 +388,6 @@ handle_queued_input(ncinputlayer* nc, ncinput* ni, int leftmargin, int topmargin static char32_t handle_input(ncinputlayer* nc, ncinput* ni, int leftmargin, int topmargin, const sigset_t* sigmask){ - // we once used getc() here (and kept ttyinfp, a FILE*, instead of the file - // descriptor infd), but under tmux, the first time running getc() would - // (bewilderingly) see a series of terminal reset codes emitted. this has - // never been explained to my satisfaction, but we can work around it by - // using a lower-level read() anyway. - // see https://github.com/dankamongmen/notcurses/issues/1314 for more info. unsigned char c; while(!input_queue_full(nc) && read(nc->infd, &c, 1) > 0){ nc->inputbuf[nc->inputbuf_write_at] = c;