Uses of Interface
org.jline.terminal.Terminal
Packages that use Terminal
Package
Description
JLine Terminal API - Core abstractions for terminal operations across different platforms.
JLine Terminal implementation classes.
Implementation of terminal functionality using external command-line utilities.
JLine Terminal Service Provider Interface (SPI).
JLine utility classes.
-
Uses of Terminal in org.jline.jansi
Methods in org.jline.jansi that return TerminalMethods in org.jline.jansi with parameters of type Terminal -
Uses of Terminal in org.jline.terminal
Methods in org.jline.terminal that return TerminalModifier and TypeMethodDescriptionTerminalBuilder.build()Create and configure a Terminal instance according to this builder's settings.static TerminalTerminalBuilder.terminal()Returns the default system terminal with automatic configuration.Methods in org.jline.terminal with parameters of type TerminalModifier and TypeMethodDescriptionstatic voidTerminalBuilder.setTerminalOverride(Terminal terminal) Deprecated.This method is deprecated to discourage its use. -
Uses of Terminal in org.jline.terminal.impl
Classes in org.jline.terminal.impl that implement TerminalModifier and TypeClassDescriptionclassBase implementation for terminals on POSIX-compliant systems.classBase implementation of the Terminal interface.classBase class for flattened POSIX system terminals that bypass the PTY abstraction.classAbstractWindowsTerminal<Console>Base implementation for terminals on Windows systems.classA minimal terminal implementation with limited capabilities.classTerminal implementation designed for external connections with embedded line discipline.classAbstract terminal with support for line discipline.classTerminal implementation for POSIX systems using a pseudoterminal (PTY).classTerminal implementation for POSIX systems using system streams.Methods in org.jline.terminal.impl that return TerminalModifier and TypeMethodDescriptionDumbTerminalProvider.newTerminal(String name, String type, InputStream masterInput, OutputStream masterOutput, Charset encoding, Charset inputEncoding, Charset outputEncoding, Terminal.SignalHandler signalHandler, boolean paused, Attributes attributes, Size size) DumbTerminalProvider.sysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) Methods in org.jline.terminal.impl with parameters of type TerminalModifier and TypeMethodDescriptionvoidKittyGraphics.clearAllImages(Terminal terminal) Clears all images from the terminal.voidKittyGraphics.deleteImage(Terminal terminal, int imageId) Deletes an image from the terminal's memory.voidITerm2Graphics.displayBackgroundImage(Terminal terminal, BufferedImage image, String position) Displays an image as a background (non-inline).voidITerm2Graphics.displayImage(Terminal terminal, BufferedImage image) voidITerm2Graphics.displayImage(Terminal terminal, BufferedImage image, TerminalGraphics.ImageOptions options) voidITerm2Graphics.displayImage(Terminal terminal, File file) voidITerm2Graphics.displayImage(Terminal terminal, File file, TerminalGraphics.ImageOptions options) voidITerm2Graphics.displayImage(Terminal terminal, InputStream inputStream) voidITerm2Graphics.displayImage(Terminal terminal, InputStream inputStream, TerminalGraphics.ImageOptions options) voidKittyGraphics.displayImage(Terminal terminal, BufferedImage image) voidKittyGraphics.displayImage(Terminal terminal, BufferedImage image, TerminalGraphics.ImageOptions options) voidKittyGraphics.displayImage(Terminal terminal, File file) voidKittyGraphics.displayImage(Terminal terminal, File file, TerminalGraphics.ImageOptions options) voidKittyGraphics.displayImage(Terminal terminal, InputStream inputStream) voidKittyGraphics.displayImage(Terminal terminal, InputStream inputStream, TerminalGraphics.ImageOptions options) voidSixelGraphics.displayImage(Terminal terminal, BufferedImage image) voidSixelGraphics.displayImage(Terminal terminal, BufferedImage image, int maxWidth, int maxHeight) Displays an image with size constraints.voidSixelGraphics.displayImage(Terminal terminal, BufferedImage image, TerminalGraphics.ImageOptions options) voidSixelGraphics.displayImage(Terminal terminal, File file) voidSixelGraphics.displayImage(Terminal terminal, File file, TerminalGraphics.ImageOptions options) voidSixelGraphics.displayImage(Terminal terminal, InputStream inputStream) voidSixelGraphics.displayImage(Terminal terminal, InputStream inputStream, TerminalGraphics.ImageOptions options) voidTerminalGraphics.displayImage(Terminal terminal, BufferedImage image) Displays a BufferedImage on the terminal using this graphics protocol.voidTerminalGraphics.displayImage(Terminal terminal, BufferedImage image, TerminalGraphics.ImageOptions options) Displays a BufferedImage on the terminal with custom options.voidTerminalGraphics.displayImage(Terminal terminal, File file) Displays an image file on the terminal.voidTerminalGraphics.displayImage(Terminal terminal, File file, TerminalGraphics.ImageOptions options) Displays an image file on the terminal with custom options.voidTerminalGraphics.displayImage(Terminal terminal, InputStream inputStream) Displays an image from an input stream on the terminal.voidTerminalGraphics.displayImage(Terminal terminal, InputStream inputStream, TerminalGraphics.ImageOptions options) Displays an image from an input stream on the terminal with custom options.static voidTerminalGraphicsManager.displayImage(Terminal terminal, BufferedImage image) Displays a BufferedImage on the terminal using the best available protocol.static voidTerminalGraphicsManager.displayImage(Terminal terminal, BufferedImage image, TerminalGraphics.ImageOptions options) Displays a BufferedImage on the terminal with custom options.static voidTerminalGraphicsManager.displayImage(Terminal terminal, File file) Displays an image file on the terminal using the best available protocol.static voidTerminalGraphicsManager.displayImage(Terminal terminal, File file, TerminalGraphics.ImageOptions options) Displays an image file on the terminal with custom options.static voidTerminalGraphicsManager.displayImage(Terminal terminal, InputStream inputStream) Displays an image from an input stream on the terminal using the best available protocol.static voidTerminalGraphicsManager.displayImage(Terminal terminal, InputStream inputStream, TerminalGraphics.ImageOptions options) Displays an image from an input stream on the terminal with custom options.static voidSixelGraphics.displayImageStatic(Terminal terminal, BufferedImage image) Displays an image in Sixel format on the terminal.static voidSixelGraphics.displayImageStatic(Terminal terminal, File file) Displays an image file in Sixel format on the terminal.static voidSixelGraphics.displayImageStatic(Terminal terminal, InputStream inputStream) Displays an image from an input stream in Sixel format on the terminal.voidITerm2Graphics.displayImageWithPercentageSize(Terminal terminal, BufferedImage image, int widthPercent, Integer heightPercent) Displays an image with percentage-based sizing.static Optional<TerminalGraphics> TerminalGraphicsManager.getBestProtocol(Terminal terminal) Finds the best graphics protocol for the given terminal.static CursorCursorSupport.getCursorPosition(Terminal terminal, IntConsumer discarded) Gets the current cursor position from the terminal.static List<TerminalGraphics> TerminalGraphicsManager.getSupportedProtocols(Terminal terminal) Gets all graphics protocols supported by the given terminal.static booleanMouseSupport.hasMouseSupport(Terminal terminal) Checks if the terminal supports mouse tracking.static booleanDoubleSizeCharacters.isDoubleSizeSupported(Terminal terminal) Checks if the terminal supports double-size characters.static booleanTerminalGraphicsManager.isGraphicsSupported(Terminal terminal) Checks if any graphics protocol is supported by the given terminal.static booleanSixelGraphics.isSixelSupported(Terminal terminal) Checks if the terminal supports Sixel graphics.booleanITerm2Graphics.isSupported(Terminal terminal) booleanKittyGraphics.isSupported(Terminal terminal) booleanSixelGraphics.isSupported(Terminal terminal) booleanTerminalGraphics.isSupported(Terminal terminal) Checks if this graphics protocol is supported by the given terminal.static String[]Returns a list of key sequences that could be used for mouse events, including the terminal's key_mouse capability if available.static voidDoubleSizeCharacters.printBanner(Terminal terminal, String text, char borderChar) Creates a banner with the specified text using double-height characters.static voidDoubleSizeCharacters.printDoubleHeight(Terminal terminal, String text) Prints text in double height (both top and bottom halves).static voidDoubleSizeCharacters.printDoubleWidth(Terminal terminal, String text) Prints text in double width.static voidDoubleSizeCharacters.printNormal(Terminal terminal, String text) Prints text in normal size.static MouseEventMouseSupport.readMouse(Terminal terminal, MouseEvent last) Reads a mouse event from the terminal.static MouseEventMouseSupport.readMouse(Terminal terminal, MouseEvent last, String prefix) Reads a mouse event from the terminal with a prefix that has already been consumed.static voidResets the terminal to normal character size.static voidDoubleSizeCharacters.setMode(Terminal terminal, DoubleSizeCharacters.Mode mode) Sets the double-size character mode for the current line.static booleanMouseSupport.trackMouse(Terminal terminal, Terminal.MouseTracking tracking) Enables or disables mouse tracking in the terminal. -
Uses of Terminal in org.jline.terminal.impl.exec
Methods in org.jline.terminal.impl.exec that return TerminalModifier and TypeMethodDescriptionExecTerminalProvider.newTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, Charset inputEncoding, Charset outputEncoding, Terminal.SignalHandler signalHandler, boolean paused, Attributes attributes, Size size) Creates a new terminal with custom input and output streams.ExecTerminalProvider.posixSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) Creates a terminal connected to a system stream on POSIX systems.ExecTerminalProvider.posixSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset stdinEncoding, Charset stdoutEncoding, Charset stderrEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) Create a POSIX system terminal backed by the specified system stream.ExecTerminalProvider.sysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) Creates a terminal connected to a system stream.ExecTerminalProvider.sysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) ExecTerminalProvider.winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) Creates a terminal connected to a system stream.ExecTerminalProvider.winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset stdinEncoding, Charset stdoutEncoding, Charset stderrEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) Create a POSIX-style system terminal for Windows environments that provide a POSIX layer (Cygwin/MSYS); returns null on other Windows variants. -
Uses of Terminal in org.jline.terminal.impl.jni
Classes in org.jline.terminal.impl.jni that implement TerminalModifier and TypeClassDescriptionclassJNI-based POSIX system terminal that callsCLibrarydirectly.Methods in org.jline.terminal.impl.jni that return TerminalModifier and TypeMethodDescriptionJniTerminalProvider.newTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, Charset inputEncoding, Charset outputEncoding, Terminal.SignalHandler signalHandler, boolean paused, Attributes attributes, Size size) Create a new terminal backed by a newly opened POSIX pseudo-terminal (PTY).JniTerminalProvider.posixSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) JniTerminalProvider.posixSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset stdinEncoding, Charset stdoutEncoding, Charset stderrEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) Create a POSIX system terminal backed by a native PTY.JniTerminalProvider.sysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) JniTerminalProvider.winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) JniTerminalProvider.winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset stdinEncoding, Charset stdoutEncoding, Charset stderrEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) -
Uses of Terminal in org.jline.terminal.impl.jni.win
Classes in org.jline.terminal.impl.jni.win that implement Terminal -
Uses of Terminal in org.jline.terminal.spi
Subinterfaces of Terminal in org.jline.terminal.spiModifier and TypeInterfaceDescriptioninterfaceExtended Terminal interface that provides access to internal implementation details.Methods in org.jline.terminal.spi that return TerminalModifier and TypeMethodDescriptionTerminalProvider.newTerminal(String name, String type, InputStream masterInput, OutputStream masterOutput, Charset encoding, Charset inputEncoding, Charset outputEncoding, Terminal.SignalHandler signalHandler, boolean paused, Attributes attributes, Size size) Creates a new terminal with custom input and output streams.default TerminalTerminalProvider.sysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) Creates a terminal connected to the controlling terminal device (/dev/tty).TerminalProvider.sysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, Charset inputEncoding, Charset outputEncoding, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, SystemStream systemStream) Creates a terminal connected to a system stream. -
Uses of Terminal in org.jline.utils
Fields in org.jline.utils declared as TerminalModifier and TypeFieldDescriptionprotected final TerminalDisplay.terminalprotected final TerminalStatus.terminalMethods in org.jline.utils with parameters of type TerminalModifier and TypeMethodDescriptionstatic intWCWidth.charCountForDisplay(CharSequence cs, int index, Terminal terminal) Compute the number of Java chars that form the display unit (code point or grapheme cluster) starting atindexincs.intAttributedCharSequence.columnLength(Terminal terminal) Returns the display width of this attributed string in columns.AttributedCharSequence.columnSplitLength(int columns, boolean includeNewlines, boolean delayLineWrap, Terminal terminal) Deprecated.AttributedCharSequence.columnSplitLength(Terminal terminal, int columns, boolean includeNewlines, boolean delayLineWrap) Splits this attributed string into multiple lines based on column width.AttributedCharSequence.columnSubSequence(int start, int stop, Terminal terminal) Deprecated.AttributedCharSequence.columnSubSequence(Terminal terminal, int start, int stop) Returns a subsequence of this attributed string based on column positions.static AttributedStringCreates an AttributedString from an ANSI-encoded string, using terminal capabilities.Status.getExistingStatus(Terminal terminal) static Statusstatic StatusvoidPrints this attributed string to the specified terminal.voidPrints this attributed string to the specified terminal, followed by a line break.Converts this attributed string to an ANSI escape sequence string appropriate for the specified terminal.static intWCWidth.wcwidthForDisplay(CharSequence cs, int index, Terminal terminal) Compute the display width in terminal columns of the character or grapheme cluster that begins at the given index in the character sequence.Constructors in org.jline.utils with parameters of type TerminalModifierConstructorDescriptionColorPalette(Terminal terminal) ColorPalette(Terminal terminal, String distance) Create a Display bound to the given Terminal and configured for either full-screen or inline (partial-screen) usage.