示例#1
0
 @Override
 public void setApplicationArrowKeys(boolean enabled) {
   if (enabled) {
     myTerminalKeyEncoder.arrowKeysApplicationSequences();
   } else {
     myTerminalKeyEncoder.arrowKeysAnsiCursorSequences();
   }
 }
示例#2
0
 @Override
 public void setApplicationKeypad(boolean enabled) {
   if (enabled) {
     myTerminalKeyEncoder.keypadApplicationSequences();
   } else {
     myTerminalKeyEncoder.keypadAnsiSequences();
   }
 }
示例#3
0
 @Override
 public void setAutoNewLine(boolean enabled) {
   myTerminalKeyEncoder.setAutoNewLine(enabled);
 }
示例#4
0
 @Override
 public byte[] getCodeForKey(int key) {
   return myTerminalKeyEncoder.getCode(key);
 }