View Single Post
Old Apr 4th, 2008, 5:06 PM   #2
glimmy
Programmer
 
glimmy's Avatar
 
Join Date: May 2005
Location: Minnesota
Posts: 42
Rep Power: 0 glimmy is on a distinguished road
Send a message via AIM to glimmy
Re: Using ctrl+d to end input

I don't know much about Java, but I believe Ctrl-D is not a signal in Unix, but rather the EOF. Instead of trying to detect the keypress, you could try and detect the EOF.
glimmy is offline   Reply With Quote