|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjline.Terminal
jline.WindowsTerminal
Terminal implementation for Microsoft Windows. Terminal initialization
in initializeTerminal()
is accomplished by extracting the
jline_version.dll, saving it to the system temporary
directoy (determined by the setting of the java.io.tmpdir
System property), loading the library, and then calling the Win32 APIs
SetConsoleMode
and
GetConsoleMode
to disable character echoing.
Constructor Summary | |
WindowsTerminal()
|
Method Summary | |
boolean |
getEcho()
Returns true if the terminal will echo all characters type. |
int |
getTerminalHeight()
Unsupported; return the default. |
int |
getTerminalWidth()
Unsupported; return the default. |
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. |
boolean |
isSupported()
Returns true if this terminal is capable of initializing the terminal to use jline. |
Methods inherited from class jline.Terminal |
getTerminal, readCharacter, setupTerminal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WindowsTerminal()
Method Detail |
public void initializeTerminal() throws Exception
Terminal
initializeTerminal
in class Terminal
Exception
public boolean isSupported()
Terminal
isSupported
in class Terminal
public boolean getEcho()
Terminal
getEcho
in class Terminal
public int getTerminalWidth()
getTerminalWidth
in class Terminal
Terminal.getTerminalWidth()
public int getTerminalHeight()
getTerminalHeight
in class Terminal
Terminal.getTerminalHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |