|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jline.Terminal
Representation of the input terminal for a platform. Handles
any initialization that the platform may need to perform
in order to allow the ConsoleReader
to correctly handle
input.
Nested Class Summary | |
static class |
Terminal.UnixTerminal
Terminal that is used for Unix platforms. |
static class |
Terminal.WindowsTerminal
Terminal that is used for Windows platforms. |
Constructor Summary | |
Terminal()
|
Method Summary | |
abstract int |
getTerminalHeight()
Returns the current height of the terminal (in lines) |
abstract int |
getTerminalWidth()
Returns the current width of the terminal (in characters) |
abstract void |
initializeTerminal()
Initialize any system settings that are required for the console to be able to handle input correctly, such as setting tabtop, buffered input, and character echo. |
static Terminal |
setupTerminal()
Configure and return the Terminal.UnixTerminal instance for the
current platform. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Terminal()
Method Detail |
public static Terminal setupTerminal()
Terminal.UnixTerminal
instance for the
current platform. This will initialize any system settings
that are required for the console to be able to handle
input correctly, such as setting tabtop, buffered input, and
character echo.
initializeTerminal()
public abstract void initializeTerminal() throws Exception
Exception
public abstract int getTerminalWidth()
public abstract int getTerminalHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |