From 259d04287fa6df1a1bc44c1f371c8dde2216ebda Mon Sep 17 00:00:00 2001 From: ben 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@5436 cda61777-01e9-0310-a592-d414129be87e --- 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); -- 2.11.0