[BusyBox-cvs] busybox.stable cmdedit.c,1.68,1.69
Erik Andersen
andersen at busybox.net
Tue Dec 23 20:11:27 UTC 2003
Update of /var/cvs/busybox.stable
In directory nail:/tmp/cvs-serv6446
Modified Files:
cmdedit.c
Log Message:
Patch from Maciej Witkowiak from back in April:
When using ash on sparcs as interactive shell you don't get any output until
you type four characters (e.g. when typing '12345678' the line is updated after
pressing 4 and 8). This was observed on Linux, both sparc32 and 64, both glibc
and uClibc.
Index: cmdedit.c
===================================================================
RCS file: /var/cvs/busybox.stable/cmdedit.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- cmdedit.c 14 Jan 2003 18:20:02 -0000 1.68
+++ cmdedit.c 23 Dec 2003 20:11:25 -0000 1.69
@@ -1196,7 +1196,7 @@
new_settings.c_lflag &= ~ICANON; /* unbuffered input */
/* Turn off echoing and CTRL-C, so we can trap it */
new_settings.c_lflag &= ~(ECHO | ECHONL | ISIG);
-#ifndef linux
+#if (defined(__sparc__) && defined(linux)) || ! defined(linux)
/* Hmm, in linux c_cc[] not parsed if set ~ICANON */
new_settings.c_cc[VMIN] = 1;
new_settings.c_cc[VTIME] = 0;
More information about the busybox-cvs
mailing list