Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6552816
Votes 0
Synopsis Console needs method to for reading low-level key events
Category java:classes_io
Reported Against
Release Fixed
State 3-Accepted, request for enhancement
Priority: 5-Very Low
Related Bugs
Submit Date 02-MAY-2007
Description
A DESCRIPTION OF THE REQUEST :
Add a readKeyEvent() method (or something similar) to java.io.Console. This method would return the next key typed by the user, regardless of whether it is displayable. This would be similar to how key events work in AWT, except it would be active (method call) rather than passive (listener). You'll need to buffer key events, and clear the buffer at the appropriate times. You may also want to add a method to allow manual clearing of the buffer.

JUSTIFICATION :
RFE 6351276 asks for the ability to read one character at a time. This is nice but it doesn't go far enough. Many console applications need to do custom handling of low-level key events (shift, alt, arrow keys, function keys, etc).
Posted Date : 2007-05-02 15:40:56.0
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 10-MAY-2009
Starover
support!



PLEASE NOTE: JDK6 is formerly known as Project Mustang