public class PosixPtyTerminal extends AbstractPosixTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandleroriginalAttributes, pty| Constructor and Description |
|---|
PosixPtyTerminal(String name,
String type,
Pty pty,
InputStream in,
OutputStream out,
Charset encoding) |
PosixPtyTerminal(String name,
String type,
Pty pty,
InputStream in,
OutputStream out,
Charset encoding,
Terminal.SignalHandler signalHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPauseResume()
Whether this terminal supports
Terminal.pause() and Terminal.resume() calls. |
void |
close() |
InputStream |
input() |
OutputStream |
output() |
void |
pause()
Stop reading the input stream.
|
void |
pause(boolean wait) |
boolean |
paused()
Check whether the terminal is currently reading the input stream or not.
|
NonBlockingReader |
reader() |
void |
resume()
Resume reading the input stream.
|
PrintWriter |
writer() |
getAttributes, getCursorPosition, getPty, getSize, setAttributes, setSizecheckInterrupted, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getStringCapability, getType, handle, hasFocusSupport, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, readMouseEvent, trackFocus, trackMousepublic PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding) throws IOException
IOExceptionpublic PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding, Terminal.SignalHandler signalHandler) throws IOException
IOExceptionpublic InputStream input()
public NonBlockingReader reader()
public OutputStream output()
public PrintWriter writer()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AbstractPosixTerminalIOExceptionpublic boolean canPauseResume()
TerminalTerminal.pause() and Terminal.resume() calls.canPauseResume in interface TerminalcanPauseResume in class AbstractTerminalTerminal.pause() and Terminal.resume() calls.Terminal.paused(),
Terminal.pause(),
Terminal.resume()public void pause()
Terminalpause in interface Terminalpause in class AbstractTerminalTerminal.resume(),
Terminal.paused()public void pause(boolean wait)
throws InterruptedException
pause in class AbstractTerminalInterruptedExceptionpublic void resume()
Terminalresume in interface Terminalresume in class AbstractTerminalTerminal.pause(),
Terminal.paused()public boolean paused()
Terminalpaused in interface Terminalpaused in class AbstractTerminalTerminal.pause(),
Terminal.resume()Copyright © 2020. All rights reserved.