Package org.jline.utils
JLine utility classes.
This package contains utility classes for terminal operations, including text styling,
cursor manipulation, ANSI escape sequence handling, and other terminal-related functionality.
- Since:
- 3.0
-
Interface Summary Interface Description ShutdownHooks.Task Essentially aRunnable
which allows running to throw an exception. -
Class Summary Class Description AnsiWriter A writer that processes ANSI escape sequences.AttributedCharSequence A character sequence with ANSI style attributes.AttributedString An immutable character sequence with ANSI style attributes.AttributedStringBuilder A mutable builder for creating styled text strings with ANSI attributes.AttributedStyle Text styling for terminal output with support for colors, fonts, and other attributes.ColorPalette Color palette for terminal color management and conversion.Colors Utility class for color-related operations and definitions.Curses Utility class for terminal cursor and screen manipulation using ANSI escape sequences.DiffHelper Utility class for computing differences between strings with ANSI attribute awareness.DiffHelper.Diff Class representing one diff operation.Display Manages terminal display and efficient screen updates with cursor positioning.ExecHelper Utility class for executing external commands and capturing their output.FastBufferedOutputStream A simple, non-synchronized buffered output stream for improved performance.InfoCmp Utility class for terminal capability handling and terminfo database access.InputStreamReader A specialized InputStreamReader that reads the minimal number of bytes needed.Levenshtein Utility class for computing string similarity using the Damerau-Levenshtein algorithm.Log Internal logging utility for JLine components.NonBlocking Factory class for creating non-blocking I/O components.NonBlockingInputStream An input stream that supports non-blocking read operations with timeouts.NonBlockingInputStreamImpl This class wraps a regular input stream and allows it to appear as if it is non-blocking; that is, reads can be performed against it that timeout if no data is seen for a period of time.NonBlockingPumpInputStream NonBlockingPumpReader NonBlockingReader A reader that provides non-blocking read operations.NonBlockingReaderImpl This class wraps a regular reader and allows it to appear as if it is non-blocking; that is, reads can be performed against it that timeout if no data is seen for a period of time.OSUtils Utility class for operating system detection and OS-specific operations.PumpReader A reader implementation with an associated writer for buffered character transfer.ShutdownHooks Manages the JLine shutdown-hook thread and tasks to execute on shutdown.Signals Signal handling utilities for terminal applications.Status Manages a status bar at the bottom of the terminal.StyleResolver Resolves named styles and style expressions into AttributedStyle objects.Timeout Helper class for managing timeouts during I/O operations.WCWidth Utility class for determining the display width of Unicode characters.WriterOutputStream An OutputStream implementation that writes to a Writer, bridging byte and character streams. -
Enum Summary Enum Description AttributedCharSequence.ForceMode Enum defining color mode forcing options for ANSI rendering.DiffHelper.Operation The data structure representing a diff is a Linked list of Diff objects: {Diff(Operation.DELETE, "Hello"), Diff(Operation.INSERT, "Goodbye"), Diff(Operation.EQUAL, " world.")} which means: delete "Hello", add "Goodbye" and keep " world."InfoCmp.Capability -
Exception Summary Exception Description ClosedException Exception thrown when attempting to use a closed resource.