1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-04 03:02:09 -05:00

Explicitly set MIN and TIME when in raw mode to request single characters

with no timeout.  This seems to make Plink work better on Solaris.

[originally from svn r5436]
This commit is contained in:
Ben Harris 2005-03-03 13:07:25 +00:00
parent 3aa041b157
commit 16c3026b28

View File

@ -135,6 +135,8 @@ void ldisc_update(void *frontend, int echo, int edit)
} else { } else {
mode.c_iflag &= ~ICRNL; mode.c_iflag &= ~ICRNL;
mode.c_lflag &= ~(ISIG | ICANON); mode.c_lflag &= ~(ISIG | ICANON);
mode.c_cc[VMIN] = 1;
mode.c_cc[VTIME] = 0;
} }
tcsetattr(0, TCSANOW, &mode); tcsetattr(0, TCSANOW, &mode);