示例#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);
 }