Menu

Commit [r4753]  Maximize  Restore  History

Pressing Ctrl-D now allows the user to close the input stream.

The behavior is the same as on MacOS: If Ctrl-D is pressed with
an empty input string (i.e. nothing else has been entered), then
the stream is closed and read() will return -1. If other
characters have already been entered, then those characters
will be used as input, the stream is NOT closed, but contrary
to pressing Enter, no newline character is entered.

Implements feature request: 1470491
Allow "end of file" in System.in input
https://sourceforge.net/tracker2/?func=detail&aid=1470491&group_id=44253&atid=438938

mgricken 2009-02-12

changed /trunk/drjava/src/edu/rice/cs/drjava/ui/InteractionsController.java
changed /trunk/drjava/src/edu/rice/cs/drjava/ui/InteractionsPaneTest.java
changed /trunk/drjava/src/edu/rice/cs/util/InputStreamRedirector.java
changed /trunk/drjava/src/edu/rice/cs/util/StreamRedirectorTest.java
/trunk/drjava/src/edu/rice/cs/drjava/ui/InteractionsController.java Diff Switch to side-by-side view
Loading...
/trunk/drjava/src/edu/rice/cs/drjava/ui/InteractionsPaneTest.java Diff Switch to side-by-side view
Loading...
/trunk/drjava/src/edu/rice/cs/util/InputStreamRedirector.java Diff Switch to side-by-side view
Loading...
/trunk/drjava/src/edu/rice/cs/util/StreamRedirectorTest.java Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB