mturk 2005/06/06 01:19:18 Modified: jni/native/src sslutils.c Log: Fix reading CRLF and function keys. Revision Changes Path 1.13 +4 -2 jakarta-tomcat-connectors/jni/native/src/sslutils.c Index: sslutils.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/sslutils.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- sslutils.c 6 Jun 2005 06:54:19 -0000 1.12 +++ sslutils.c 6 Jun 2005 08:19:18 -0000 1.13 @@ -114,7 +114,9 @@ fputs(prompt, stderr); for (i = 0; i < (len - 1); i++) { ch = getch(); - if (ch == '\n') + if (ch == 0) + ch = getch(); + if (ch == '\n' || ch == '\r') break; else if (ch == '\b') { i--;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]