make things work on SunOS
This commit is contained in:
parent
e637c944fe
commit
a0f1e21ff9
19 changed files with 43 additions and 20 deletions
|
|
@ -60,14 +60,14 @@ updatewinsize(int row, int col, int dx, int dy)
|
|||
static struct termios ttmode;
|
||||
|
||||
int
|
||||
israw(int fd)
|
||||
isecho(int fd)
|
||||
{
|
||||
if(tcgetattr(fd, &ttmode) < 0)
|
||||
fprint(2, "tcgetattr: %r\n");
|
||||
if(debug) fprint(2, "israw %c%c\n",
|
||||
ttmode.c_lflag&ICANON ? 'c' : '-',
|
||||
ttmode.c_lflag&ECHO ? 'e' : '-');
|
||||
return !(ttmode.c_lflag&(ICANON|ECHO));
|
||||
return (ttmode.c_lflag&(ICANON|ECHO));
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue