public class PosixPtyTerminal extends AbstractPosixTerminal
Terminal.MouseTracking, Terminal.Signal, Terminal.SignalHandler
originalAttributes, 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, setSize
checkInterrupted, echo, echo, echoSignal, encoding, enterRawMode, flush, getBooleanCapability, getKind, getName, getNumericCapability, getStringCapability, getType, handle, hasFocusSupport, hasMouseSupport, parseInfoCmp, puts, raise, readMouseEvent, readMouseEvent, trackFocus, trackMouse
public PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding) throws IOException
IOException
public PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding, Terminal.SignalHandler signalHandler) throws IOException
IOException
public InputStream input()
public NonBlockingReader reader()
public OutputStream output()
public PrintWriter writer()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractPosixTerminal
IOException
public boolean canPauseResume()
Terminal
Terminal.pause()
and Terminal.resume()
calls.canPauseResume
in interface Terminal
canPauseResume
in class AbstractTerminal
Terminal.pause()
and Terminal.resume()
calls.Terminal.paused()
,
Terminal.pause()
,
Terminal.resume()
public void pause()
Terminal
pause
in interface Terminal
pause
in class AbstractTerminal
Terminal.resume()
,
Terminal.paused()
public void pause(boolean wait) throws InterruptedException
pause
in class AbstractTerminal
InterruptedException
public void resume()
Terminal
resume
in interface Terminal
resume
in class AbstractTerminal
Terminal.pause()
,
Terminal.paused()
public boolean paused()
Terminal
paused
in interface Terminal
paused
in class AbstractTerminal
Terminal.pause()
,
Terminal.resume()
Copyright © 2018 JBoss by Red Hat. All rights reserved.