java.lang.Object
com.googlecode.lanterna.terminal.virtual.TextBuffer

class TextBuffer extends Object
This class is used to store lines of text inside of a terminal emulator. As used by DefaultVirtualTerminal, it keeps two TextBuffers, one for private mode and one for normal mode and it can switch between them as needed.
  • Field Details

  • Constructor Details

    • TextBuffer

      TextBuffer()
  • Method Details

    • newLine

      void newLine()
    • removeTopLines

      void removeTopLines(int numberOfLinesToRemove)
    • clear

      void clear()
    • getLinesFrom

      ListIterator<List<TextCharacter>> getLinesFrom(int rowNumber)
    • getLineCount

      int getLineCount()
    • setCharacter

      int setCharacter(int lineNumber, int columnIndex, TextCharacter textCharacter)
    • getCharacter

      TextCharacter getCharacter(int lineNumber, int columnIndex)
    • toString

      public String toString()
      Overrides:
      toString in class Object