Class AbstractTerminal

java.lang.Object
org.jline.terminal.impl.AbstractTerminal
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, TerminalExt, Terminal
Direct Known Subclasses:
AbstractPosixTerminal, AbstractWindowsTerminal, DumbTerminal, LineDisciplineTerminal

public abstract class AbstractTerminal extends Object implements TerminalExt
Base implementation of the Terminal interface.

This abstract class provides a common foundation for terminal implementations, handling many of the core terminal functions such as signal handling, attribute management, and capability lookup. It implements most of the methods defined in the Terminal interface, leaving only a few abstract methods to be implemented by concrete subclasses.

Terminal implementations typically extend this class and provide implementations for the abstract methods related to their specific platform or environment. This class handles the common functionality, allowing subclasses to focus on platform-specific details.

Key features provided by this class include:

  • Signal handling infrastructure
  • Terminal attribute management
  • Terminal capability lookup and caching
  • Size and cursor position handling
  • Mouse and focus tracking support
See Also: