jline
Interface Terminal
- All Known Implementing Classes:
- AnsiWindowsTerminal, NoInterruptUnixTerminal, TerminalSupport, UnixTerminal, UnsupportedTerminal, WindowsTerminal
public interface Terminal
Representation of the input terminal for a platform.
- Since:
- 2.0
- Author:
- Marc Prud'hommeaux, Jason Dillon
init
void init()
throws java.lang.Exception
- Throws:
java.lang.Exception
restore
void restore()
throws java.lang.Exception
- Throws:
java.lang.Exception
reset
void reset()
throws java.lang.Exception
- Throws:
java.lang.Exception
isSupported
boolean isSupported()
getWidth
int getWidth()
getHeight
int getHeight()
isAnsiSupported
boolean isAnsiSupported()
isEchoEnabled
boolean isEchoEnabled()
setEchoEnabled
void setEchoEnabled(boolean enabled)
readCharacter
int readCharacter(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
readVirtualKey
int readVirtualKey(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
getDefaultBindings
java.io.InputStream getDefaultBindings()
Copyright © 2008-2011 Sonatype. All Rights Reserved.