public class CygwinTerminal extends ANSITerminal
Terminal.Color, Terminal.ResizeListener, Terminal.SGR
writerMutex
Constructor and Description |
---|
CygwinTerminal(InputStream terminalInput,
OutputStream terminalOutput,
Charset terminalCharset) |
Modifier and Type | Method and Description |
---|---|
void |
enterPrivateMode()
Calling this method will, where supported, give your terminal a private
area to use, separate from what was there before.
|
void |
exitPrivateMode()
If you have previously entered private mode, this method will exit this
and, depending on implementation, maybe restore what the terminal looked
like before private mode was entered.
|
TerminalSize |
getTerminalSize()
Returns the size of the terminal, expressed as a
TerminalSize
object. |
void |
setCBreak(boolean cbreakOn)
Enabling cbreak mode will allow you to read user input immediately as the
user enters the characters, as opposed to reading the data in lines as
the user presses enter.
|
void |
setEcho(boolean echoOn)
Enables or disables keyboard echo, meaning the immediate output of the
characters you type on your keyboard.
|
applyBackgroundColor, applyBackgroundColor, applyBackgroundColor, applyForegroundColor, applyForegroundColor, applyForegroundColor, applySGR, clearScreen, moveCursor, queryTerminalSize, reportPosition, restoreCursorPosition, saveCursorPosition, setCursorVisible
flush, putCharacter, translateCharacter, writeToTerminal
addInputProfile, readInput, waitForTerminalSizeReport
addResizeListener, getLastKnownSize, onResized, removeResizeListener
public CygwinTerminal(InputStream terminalInput, OutputStream terminalOutput, Charset terminalCharset)
public TerminalSize getTerminalSize()
Terminal
TerminalSize
object. Please bear in mind that depending on the Terminal
implementation, this may or may not be accurate. See the implementing
classes for more information.getTerminalSize
in interface Terminal
getTerminalSize
in class ANSITerminal
public void enterPrivateMode()
Terminal
enterPrivateMode
in interface Terminal
enterPrivateMode
in class ANSITerminal
public void exitPrivateMode()
Terminal
exitPrivateMode
in interface Terminal
exitPrivateMode
in class ANSITerminal
public void setCBreak(boolean cbreakOn)
ANSITerminal
setCBreak
in class ANSITerminal
public void setEcho(boolean echoOn)
ANSITerminal
setEcho
in class ANSITerminal
echoOn
- true if keyboard input will immediately echo, false if it's hiddenCopyright © 2015. All Rights Reserved.