From 16c3026b28c6f0e5eabfe4792fc4d41815068070 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 3 Mar 2005 13:07:25 +0000 Subject: [PATCH] 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] --- unix/uxplink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/uxplink.c b/unix/uxplink.c index 8d1aac74..851cefda 100644 --- a/unix/uxplink.c +++ b/unix/uxplink.c @@ -135,6 +135,8 @@ void ldisc_update(void *frontend, int echo, int edit) } else { mode.c_iflag &= ~ICRNL; mode.c_lflag &= ~(ISIG | ICANON); + mode.c_cc[VMIN] = 1; + mode.c_cc[VTIME] = 0; } tcsetattr(0, TCSANOW, &mode);