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:
Timo Sirainen 2001-10-28 23:47:47 +00:00 committed by cras
commit 801e593718
5 changed files with 24 additions and 21 deletions

View file

@ -312,7 +312,8 @@ void term_stop(void)
irssi_redraw();
}
int term_getch(void)
int term_gets(unsigned char *buffer, int size)
{
return fgetc(current_term->in);
/* fread() doesn't work */
return read(fileno(current_term->in), buffer, size);
}