Package org.jline.terminal.impl
Class DumbTerminal
java.lang.Object
org.jline.terminal.impl.AbstractTerminal
org.jline.terminal.impl.DumbTerminal
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,TerminalExt,Terminal
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jline.terminal.Terminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler -
Field Summary
Fields inherited from class org.jline.terminal.impl.AbstractTerminal
bools, encoding, handlers, ints, name, onClose, palette, status, strings, typeFields inherited from interface org.jline.terminal.Terminal
TYPE_DUMB, TYPE_DUMB_COLOR -
Constructor Summary
ConstructorsConstructorDescriptionDumbTerminal(InputStream in, OutputStream out) DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding) DumbTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, InputStream in, OutputStream out, Charset encoding, Terminal.SignalHandler signalHandler) -
Method Summary
Modifier and TypeMethodDescriptionReturns the terminal attributes.Returns theTerminalProviderthat created this terminal ornullif the terminal was created with no provider.getSize()Retrieve the size of the visible windowThe underlying system stream, may beSystemStream.Output,SystemStream.Error, ornullif this terminal is not bound to a system stream.input()Retrieve the input stream for this terminal.output()Retrieve the output stream for this terminal.reader()Retrieve theReaderfor this terminal.voidsetAttributes(Attributes attr) Set the terminal attributes.voidwriter()Retrieve theWriterfor this terminal.Methods inherited from class org.jline.terminal.impl.AbstractTerminal
canPauseResume, checkInterrupted, close, doClose, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getCursorPosition, getKind, getName, getNumericCapability, getPalette, getStatus, getStatus, getStringCapability, getType, handle, hasFocusSupport, hasMouseSupport, parseInfoCmp, pause, pause, paused, puts, raise, readMouseEvent, readMouseEvent, resume, setOnClose, toString, trackFocus, trackMouseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jline.terminal.Terminal
getBufferSize, getHeight, getWidth
-
Constructor Details
-
DumbTerminal
- Throws:
IOException
-
DumbTerminal
public DumbTerminal(String name, String type, InputStream in, OutputStream out, Charset encoding) throws IOException - Throws:
IOException
-
DumbTerminal
public DumbTerminal(TerminalProvider provider, SystemStream systemStream, String name, String type, InputStream in, OutputStream out, Charset encoding, Terminal.SignalHandler signalHandler) throws IOException - Throws:
IOException
-
-
Method Details
-
reader
Description copied from interface:TerminalRetrieve theReaderfor this terminal. This is the standard way to read input from this terminal. The reader is non blocking.- Returns:
- The non blocking reader
-
writer
Description copied from interface:TerminalRetrieve theWriterfor this terminal. This is the standard way to write to this terminal.- Returns:
- The writer
-
input
Description copied from interface:TerminalRetrieve 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 theTerminal.reader()instead.- Returns:
- The input stream
- See Also:
-
output
Description copied from interface:TerminalRetrieve 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 theTerminal.writer()instead.- Returns:
- The output stream
- See Also:
-
getAttributes
Description copied from interface:TerminalReturns the terminal attributes. The returned object can be safely modified further used in a call toTerminal.setAttributes(Attributes).- Returns:
- the terminal attributes.
-
setAttributes
Description copied from interface:TerminalSet the terminal attributes. The terminal will perform a copy of the given attributes.- Parameters:
attr- the new attributes
-
getSize
-
setSize
-
getProvider
Description copied from interface:TerminalExtReturns theTerminalProviderthat created this terminal ornullif the terminal was created with no provider. -
getSystemStream
Description copied from interface:TerminalExtThe underlying system stream, may beSystemStream.Output,SystemStream.Error, ornullif this terminal is not bound to a system stream.
-