code: public void moveToEndOfLine() {
          String currentLine = getContent(getLine());
          LinkedList<String> toDisplayLines = toDisplayLines(currentLine);
          int remainingLines = getColumn() / terminal.getWidth() + 1;
          for (int r = 0; r < remainingLines; r++) {
              toDisplayLines.removeFirst();
          }
          frameColumn = currentLine.length();
          delegate.moveToEndOfLine();
          for (int l = 0; l < toDisplayLines.size(); l++) {
              frameLine++;
              frameColumn -= terminal.getWidth();
              if (frameLine >= terminal.getHeight() - getFooterSize()) {
                  frameLine = terminal.getHeight() - getHeaderSize() - getFooterSize();
                  scrollUp(1);
                  console.out().print(ansi().cursor(frameLine + getHeaderSize(), 1));
                  displayText(toDisplayLines.get(l));
                  console.out().print(ansi().cursor(frameLine + getHeaderSize(), getColumn()));
              }
          }
          console.out().print(ansi().cursor(frameLine + getHeaderSize(), frameColumn));
      }
docs: Moves cursor to the end of the current line.