[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Raw keyboard input for Java (?)
Can anyone give me pointers as to how I can get input to Java from a keyboard
- one character at a time with no echo, as they are typed?
The default System.in delivers characters a line at a time, and they are
echo'd to the screen as they are typed.
I recall that in the past I've done this sort of thing with C, using system
calls - i.e. system (Unix) specific. I'd really like to find a universal
technique, if that is possible.
Thanks,
Barry.
--
/----------------------------------------------------------------------------\
| Barry M Cook, BSc, PhD, CEng, MBCS |
| Senior Lecturer, Department of Computer Science, |
| Chartered Information Systems Engineer. Keele University, |
| Keele, |
| Phone: +44 1782 583411 Staffordshire, |
| FAX: +44 1782 713082 ST5 5BG, |
| email: barry@xxxxxxxxxxxxxx UK. |
\----------------------------------------------------------------------------/