Explicitly set MIN and TIME when in raw mode to request single characters
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 3 Mar 2005 13:07:25 +0000 (13:07 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 3 Mar 2005 13:07:25 +0000 (13:07 +0000)
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

index 8d1aac7..851cefd 100644 (file)
@@ -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);