APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.org.jline.terminal.impl

public abstract Class AbstractPosixTerminal

extends AbstractTerminal
Class Inheritance
Known Direct Subclasses
jdk.internal.org.jline.terminal.impl.PosixPtyTerminal, jdk.internal.org.jline.terminal.impl.PosixSysTerminal
Imports
java.io.IOError, .IOException, java.nio.charset.Charset, java.util.Objects, java.util.function.IntConsumer, jdk.internal.org.jline.terminal.Attributes, .Cursor, .Size, jdk.internal.org.jline.terminal.spi.Pty, .SystemStream, .TerminalProvider

Field Summary

Modifier and TypeField and Description
protected final Attributes
protected final Pty
Inherited from jdk.internal.org.jline.terminal.impl.AbstractTerminal:
boolsencodinghandlersintsnameonClosepalettestatusstringstype

Constructor Summary

AccessConstructor and Description
public
public
AbstractPosixTerminal(String name, String type, Pty pty, Charset encoding, Terminal.SignalHandler signalHandler)

Method Summary

Modifier and TypeMethod and Description
protected void
public Attributes
getAttributes()

Implements jdk.internal.org.jline.terminal.Terminal.getAttributes.

Returns the terminal attributes.

public Cursor
public TerminalProvider
getProvider()

Implements jdk.internal.org.jline.terminal.spi.TerminalExt.getProvider.

Returns the TerminalProvider that created this terminal or null if the terminal was created with no provider.

public Pty
public Size
getSize()

Implements jdk.internal.org.jline.terminal.Terminal.getSize.

Retrieve the size of the visible window

public SystemStream
getSystemStream()

Implements jdk.internal.org.jline.terminal.spi.TerminalExt.getSystemStream.

The underlying system stream, may be SystemStream#Output, SystemStream#Error, or null if this terminal is not bound to a system stream.

public void
public void
public String
toString()

Overrides jdk.internal.org.jline.terminal.impl.AbstractTerminal.toString.

Returns a string representation of the object.

Inherited from jdk.internal.org.jline.terminal.impl.AbstractTerminal:
canPauseResumecheckInterruptedcloseechoechoechoSignalencodingenterRawModeflushgetBooleanCapabilitygetKindgetNamegetNumericCapabilitygetPalettegetStatusgetStatusgetStringCapabilitygetTypehandlehasFocusSupporthasMouseSupportparseInfoCmppausepausepausedputsraisereadMouseEventreadMouseEventresumesetOnClosetrackFocustrackMouse

Field Detail

originalAttributesback to summary
protected final Attributes originalAttributes
ptyback to summary
protected final Pty pty

Constructor Detail

AbstractPosixTerminalback to summary
public AbstractPosixTerminal(String name, String type, Pty pty) throws IOException
AbstractPosixTerminalback to summary
public AbstractPosixTerminal(String name, String type, Pty pty, Charset encoding, Terminal.SignalHandler signalHandler) throws IOException

Method Detail

doCloseback to summary
protected void doClose() throws IOException

Overrides jdk.internal.org.jline.terminal.impl.AbstractTerminal.doClose.

getAttributesback to summary
public Attributes getAttributes()

Implements jdk.internal.org.jline.terminal.Terminal.getAttributes.

Doc from jdk.internal.org.jline.terminal.Terminal.getAttributes.

Returns the terminal attributes. The returned object can be safely modified further used in a call to setAttributes(Attributes).

getCursorPositionback to summary
public Cursor getCursorPosition(IntConsumer discarded)

Overrides jdk.internal.org.jline.terminal.impl.AbstractTerminal.getCursorPosition.

Implements jdk.internal.org.jline.terminal.Terminal.getCursorPosition.

Doc from jdk.internal.org.jline.terminal.Terminal.getCursorPosition.

Query the terminal to report the cursor position. As the response is read from the input stream, some characters may be read before the cursor position is actually read. Those characters can be given back using org.jline.keymap.BindingReader#runMacro(String)

Annotations
@Override
getProviderback to summary
public TerminalProvider getProvider()

Implements jdk.internal.org.jline.terminal.spi.TerminalExt.getProvider.

Doc from jdk.internal.org.jline.terminal.spi.TerminalExt.getProvider.

Returns the TerminalProvider that created this terminal or null if the terminal was created with no provider.

Annotations
@Override
getPtyback to summary
public Pty getPty()
getSizeback to summary
public Size getSize()

Implements jdk.internal.org.jline.terminal.Terminal.getSize.

Doc from jdk.internal.org.jline.terminal.Terminal.getSize.

Retrieve the size of the visible window

getSystemStreamback to summary
public SystemStream getSystemStream()

Implements jdk.internal.org.jline.terminal.spi.TerminalExt.getSystemStream.

Doc from jdk.internal.org.jline.terminal.spi.TerminalExt.getSystemStream.

The underlying system stream, may be SystemStream#Output, SystemStream#Error, or null if this terminal is not bound to a system stream.

Annotations
@Override
setAttributesback to summary
public void setAttributes(Attributes attr)

Implements jdk.internal.org.jline.terminal.Terminal.setAttributes.

Doc from jdk.internal.org.jline.terminal.Terminal.setAttributes.

Set the terminal attributes. The terminal will perform a copy of the given attributes.

setSizeback to summary
public void setSize(Size size)

Implements jdk.internal.org.jline.terminal.Terminal.setSize.

toStringback to summary
public String toString()

Overrides jdk.internal.org.jline.terminal.impl.AbstractTerminal.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override