[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Bug: prompt wasn't flushed under Cygwin.
From: |
mishima |
Subject: |
[Help-smalltalk] Bug: prompt wasn't flushed under Cygwin. |
Date: |
Sun, 31 Mar 2002 03:46:17 +0900 (LMT) |
Hello,
I started to use GNU Smalltalk 1.95.9 under Win2K and Cygwin.
I entered "gst" on the Cygwin bash shell but nothing was shown at first.
I hit Enter keys several times and finally Ctrl-D.
Then I saw multiple prompts displayed at a time -- as st> st> st> ....
I supposed the output wasn't flushed, so tried a fix as shown below.
Now it works good for that.
Please check it. I believe it will not do any harm to existing codes.
Regards,
- masahiro
--- smalltalk-1.95.9/libgst/input.c.orig Sat Jan 5 05:21:31 2002
+++ smalltalk-1.95.9/libgst/input.c Sat Mar 30 01:02:09 2002
@@ -582,6 +582,7 @@
printf("%c", EMACS_PROCESS_MARKER);
}
printf("st> ");
+ fflush(stdout);
}
ic = myGetC(inStream);
--- smalltalk-1.95.9/libgst/lib.c.orig Wed Jan 16 03:24:21 2002
+++ smalltalk-1.95.9/libgst/lib.c Sun Mar 31 03:11:51 2002
@@ -507,6 +507,7 @@
if (!noBanner) {
printf("GNU Smalltalk Ready\n\n");
+ fflush(stdout);
}
for (filesProcessed = 0; *++smalltalkArgv; ) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-smalltalk] Bug: prompt wasn't flushed under Cygwin.,
mishima <=