mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
term_getch() -> term_gets() which can be used to read multiple keypresses at
once. Also fixes keyboard not working with netbsd. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1935 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
09ca58961b
commit
801e593718
5 changed files with 24 additions and 21 deletions
|
|
@ -429,7 +429,7 @@ static void terminfo_input_init(TERM_REC *term)
|
|||
memcpy(&term->tio, &term->old_tio, sizeof(term->tio));
|
||||
|
||||
term->tio.c_lflag &= ~(ICANON | ECHO); /* CBREAK, no ECHO */
|
||||
term->tio.c_cc[VMIN] = 0; /* non-blocking read */
|
||||
term->tio.c_cc[VMIN] = 1; /* read() is satisfied after 1 char */
|
||||
term->tio.c_cc[VTIME] = 0; /* No timer */
|
||||
|
||||
/* Disable INTR, QUIT, VDSUSP and SUSP keys */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue