I've see this problem as well.
The setup where this occurs for me is NT, Emacs 20.3.1 (prebuilt), JDE
2.1.5, JDK 1.1.7. Changing to JDK 1.2 gets rid of the problem. It
doesn't happen at all with the same setup (JDE 2.1.5, JDK 1.1.7) on
Linux. And it doesn't happen on either platform in bash or DOS shells
outside of emacs.
For me, the problem maps directly to the buffer size (which is 8192 by
default). That is, if I change the code you sent to use a buffer size of
5, exactly 5 characters (including newlines) must entered before the
program reads the input buffer and displays any output. If I don't set
this, it takes 8K of input (or exiting the program) before anything is
displayed back to me.
john
Gilbert Laycock wrote:
>
> Paul> I also tested Echo with no problems on NT/SVP4, JDE 2.1.6beta1,
> Paul> and JDK 1.2.1.
>
> Paul> Considering that you are able to get it to work with the Unix version
> Paul> of Emacs, it's possible that this may have something to do with
> Paul> eol conversion on NT. It might help to see your .emacs file to see
> Paul> what comint settings you have.
>
> OK. I am using
> NT/SVP4, GNU Emacs 20.3.1 (a pre-compiled version, downloaded from a
> mirror of the NT Emacs site), JDE 2.5.1, jdk 1.1.8.
>
> My various startup files are attached below.
>
> ------------------------------------------------------------------------
> Name: .emacs
> .emacs Type: unspecified type (application/octet-stream)
> Encoding: 7bit
>
> ------------------------------------------------------------------------
>
> (In unix I use XEmacs. However, there JDE works properly for me even
> if I start it with -q, so I will omit my very long xemacs startup
> file(s))
>
> My .fsfcustom file contains:
>
> ------------------------------------------------------------------------
> Name: .fsfecustom
> .fsfecustom Type: unspecified type (application/octet-stream)
> Encoding: 7bit
>
> ------------------------------------------------------------------------
>
> The MCS.el file referred to contains most of the stuff from the
> "minimal .emacs file" from the JDE installation page:
>
> ------------------------------------------------------------------------
> Name: MCS.el
> MCS.el Type: unspecified type (application/octet-stream)
> Encoding: 7bit
>
> ------------------------------------------------------------------------
>
> And finally, the site-lisp file in use just contains:
>
> ------------------------------------------------------------------------
> Name: site-start.el
> site-start.el Type: unspecified type (application/octet-stream)
> Encoding: 7bit
>
> ------------------------------------------------------------------------
>
> (I must say, it is very good to hear that others don't have my
> problem. It must be something relatively minor that I am missing.
>
> Also, thanks to Risto Bell <[EMAIL PROTECTED]> for suggesting I look at
> process-connection-type and comint-ptyp . Unfortunately neither of
> them made any difference.)
>
> --
>
> Gilbert Laycock email: [EMAIL PROTECTED]
> Maths and Computer Science, http://www.mcs.le.ac.uk/~glaycock
> Leicester University phone: (+44) 116 252 3902