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

public Class DumbTerminal

extends AbstractTerminal
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, .OutputStreamWriter, .PrintWriter, java.nio.charset.Charset, java.util.function.Function, jdk.internal.org.jline.terminal.Attributes, .Attributes.ControlChar, .Size, jdk.internal.org.jline.terminal.spi.SystemStream, .TerminalProvider, jdk.internal.org.jline.utils.NonBlocking, .NonBlockingInputStream, .NonBlockingReader

Field Summary

Modifier and TypeField and Description
private final Attributes
private final NonBlockingInputStream
private final OutputStream
private final TerminalProvider
private final NonBlockingReader
private final Size
private boolean
private final SystemStream
private final PrintWriter
Inherited from jdk.internal.org.jline.terminal.impl.AbstractTerminal:
boolsencodinghandlersintsnameonClosepalettestatusstringstype

Constructor Summary

AccessConstructor and Description
public
public
DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, Function<InputStream, InputStream> inputStreamWrapper)

public
DumbTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, InputStream in, OutputStream out, Charset encoding, Terminal.SignalHandler signalHandler, Function<InputStream, InputStream> inputStreamWrapper)

Method Summary

Modifier and TypeMethod and Description
public Attributes
getAttributes()

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

Returns the terminal attributes.

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 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 InputStream
input()

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

Retrieve the input stream for this terminal.

public OutputStream
output()

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

Retrieve the output stream for this terminal.

public NonBlockingReader
reader()

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

Retrieve the Reader for this terminal.

public void
public void
public PrintWriter
writer()

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

Retrieve the Writer for this terminal.

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

Field Detail

attributesback to summary
private final Attributes attributes
inputback to summary
private final NonBlockingInputStream input
outputback to summary
private final OutputStream output
providerback to summary
private final TerminalProvider provider
readerback to summary
private final NonBlockingReader reader
sizeback to summary
private final Size size
skipNextLfback to summary
private boolean skipNextLf
systemStreamback to summary
private final SystemStream systemStream
writerback to summary
private final PrintWriter writer

Constructor Detail

DumbTerminalback to summary
public DumbTerminal(InputStream in, OutputStream out, Function<InputStream, InputStream> inputStreamWrapper) throws IOException
DumbTerminalback to summary
public DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding, Function<InputStream, InputStream> inputStreamWrapper) throws IOException
DumbTerminalback to summary
public DumbTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, InputStream in, OutputStream out, Charset encoding, Terminal.SignalHandler signalHandler, Function<InputStream, InputStream> inputStreamWrapper) throws IOException
Annotations
@SuppressWarnings:this-escape

Method Detail

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).

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
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
inputback to summary
public InputStream input()

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

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

Retrieve the input stream for this terminal. In some rare cases, there may be a need to access the terminal input stream directly. In the usual cases, use the reader() instead.

Annotations
@Override
outputback to summary
public OutputStream output()

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

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

Retrieve the output stream for this terminal. In some rare cases, there may be a need to access the terminal output stream directly. In the usual cases, use the writer() instead.

Annotations
@Override
readerback to summary
public NonBlockingReader reader()

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

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

Retrieve the Reader for this terminal. This is the standard way to read input from this terminal. The reader is non blocking.

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 sz)

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

writerback to summary
public PrintWriter writer()

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

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

Retrieve the Writer for this terminal. This is the standard way to write to this terminal.