Class ScreenTerminal

java.lang.Object
org.jline.builtins.ScreenTerminal

public class ScreenTerminal extends Object
A virtual terminal screen implementation.

This class provides a virtual terminal screen that can process ANSI escape sequences and maintain the state of a terminal display. It supports features including:

  • Cursor positioning and movement
  • Text attributes (bold, underline, etc.)
  • Color support (including 256 colors)
  • Screen clearing and scrolling
  • Alternate screen buffer
  • Screen resizing

This implementation is based on the Apache Karaf WebConsole Gogo plugin, with adaptations to support alternate screen, resizing, and 256 colors. It follows the ECMA-48 standard for terminal control sequences.

  • Constructor Details

    • ScreenTerminal

      public ScreenTerminal()
    • ScreenTerminal

      public ScreenTerminal(int width, int height)
  • Method Details