Example #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);
 }
Example #2
0
 @Override
 public void setTabStopAtCursor() {
   myTabulator.setTabStop(myCursorX);
 }
Example #3
0
 @Override
 public void clearAllTabStops() {
   myTabulator.clearAllTabStops();
 }
Example #4
0
 @Override
 public void clearTabStopAtCursor() {
   myTabulator.clearTabStop(myCursorX);
 }