Thanks very much to John Sigler and also Casper Gjerris for pointing
out the answer:
jdk 1.1.8 (and earlier) exhibit this problem when used with Emacs,
but not when used in a shell directly.
In summary the two possible solutions are:
* replace code like
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in));
with
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in),1);
to limit the buffer size to 1 (instead of the default of 8k).
* Upgrade to jdk 1.2
I tried both ideas, and they both worked for me.
--
Gilbert Laycock email: [EMAIL PROTECTED]
Maths and Computer Science, http://www.mcs.le.ac.uk/~glaycock
Leicester University phone: (+44) 116 252 3902
- BufferedReader.readLine() and JDE and NTEmacs Gilbert Laycock
- Re: BufferedReader.readLine() and JDE and NTEmacs Brad Giaccio
- Re: BufferedReader.readLine() and JDE and NTEmacs Gilbert Laycock
- Re: BufferedReader.readLine() and JDE and NTEmacs David Fellows
- RE: BufferedReader.readLine() and JDE and NTEmacs Pohl_Longsine
- RE: BufferedReader.readLine() and JDE and NTEmacs Paul Kinnucan
- Re: BufferedReader.readLine() and JDE and NTE... Gilbert Laycock
- Re: BufferedReader.readLine() and JDE and... John Sigler
- Re: BufferedReader.readLine() and JD... Gilbert Laycock
- Re: BufferedReader.readLine() and JDE and NTEmacs Anonymous
- Re: BufferedReader.readLine() and JDE and NTEmacs Anonymous
