Commit 3076c57 1 parent 5e790b1 commit 3076c57 Copy full SHA for 3076c57
File tree 3 files changed +5
-17
lines changed
src/main/java/org/jline/terminal/impl
3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public void close() throws IOException {
173
173
writer .close ();
174
174
}
175
175
176
- protected abstract byte [] readConsoleInput ();
176
+ protected abstract byte [] readConsoleInput () throws IOException ;
177
177
178
178
protected String getEscapeSequence (short keyCode ) {
179
179
String escapeSequence = null ;
Original file line number Diff line number Diff line change @@ -54,14 +54,8 @@ public Size getSize() {
54
54
return size ;
55
55
}
56
56
57
- protected byte [] readConsoleInput () {
58
- // XXX does how many events to read in one call matter?
59
- INPUT_RECORD [] events = null ;
60
- try {
61
- events = WindowsSupport .readConsoleInput (1 );
62
- } catch (IOException e ) {
63
- Log .debug ("read Windows terminal input error: " , e );
64
- }
57
+ protected byte [] readConsoleInput () throws IOException {
58
+ INPUT_RECORD [] events = WindowsSupport .readConsoleInput (1 );
65
59
if (events == null ) {
66
60
return new byte [0 ];
67
61
}
Original file line number Diff line number Diff line change @@ -55,14 +55,8 @@ public Size getSize() {
55
55
return new Size (info .windowWidth (), info .windowHeight ());
56
56
}
57
57
58
- protected byte [] readConsoleInput () {
59
- // XXX does how many events to read in one call matter?
60
- Kernel32 .INPUT_RECORD [] events = null ;
61
- try {
62
- events = doReadConsoleInput ();
63
- } catch (IOException e ) {
64
- Log .debug ("read Windows terminal input error: " , e );
65
- }
58
+ protected byte [] readConsoleInput () throws IOException {
59
+ Kernel32 .INPUT_RECORD [] events = doReadConsoleInput ();
66
60
if (events == null ) {
67
61
return new byte [0 ];
68
62
}
You can’t perform that action at this time.
0 commit comments