Class SwingTerminal

java.lang.Object
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, Sized, TerminalExt, Terminal

public class SwingTerminal extends LineDisciplineTerminal
A Swing-based terminal implementation that extends LineDisciplineTerminal.

This class provides a proper JLine Terminal implementation that can be embedded in Swing applications to display a terminal interface. It renders terminal content using Java 2D graphics and handles keyboard and mouse input with proper terminal capabilities.

Features:

  • Full JLine Terminal interface implementation
  • Custom painting for terminal characters and attributes
  • ANSI color support with configurable color palette
  • Font configuration with monospace font support
  • Keyboard input handling with proper terminal capabilities
  • Mouse support for cursor positioning
  • Scrollback buffer support
  • Cursor blinking