예제 #1
0
 @Override
 public void horizontalTab() {
   if (myCursorX >= myTerminalWidth) {
     return;
   }
   int length = myTerminalTextBuffer.getLine(myCursorY - 1).getText().length();
   int stop = myTabulator.nextTab(myCursorX);
   myCursorX = Math.max(myCursorX, length);
   if (myCursorX < stop) {
     char[] chars = new char[stop - myCursorX];
     Arrays.fill(chars, CharUtils.EMPTY_CHAR);
     doWriteString(new String(chars));
   } else {
     myCursorX = stop;
   }
   myDisplay.setCursor(myCursorX, myCursorY);
 }
예제 #2
0
 @Override
 public void setTabStopAtCursor() {
   myTabulator.setTabStop(myCursorX);
 }
예제 #3
0
 @Override
 public void clearAllTabStops() {
   myTabulator.clearAllTabStops();
 }
예제 #4
0
 @Override
 public void clearTabStopAtCursor() {
   myTabulator.clearTabStop(myCursorX);
 }