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 Exception
- Throws:
Exception
restore
void restore()
throws Exception
- Throws:
Exception
reset
void reset()
throws Exception
- Throws:
Exception
isSupported
boolean isSupported()
getWidth
int getWidth()
getHeight
int getHeight()
isAnsiSupported
boolean isAnsiSupported()
isEchoEnabled
boolean isEchoEnabled()
setEchoEnabled
void setEchoEnabled(boolean enabled)
readCharacter
int readCharacter(InputStream in)
throws IOException
- Throws:
IOException
readVirtualKey
int readVirtualKey(InputStream in)
throws IOException
- Throws:
IOException
getDefaultBindings
InputStream getDefaultBindings()
Copyright © 2008-2011 Sonatype. All Rights Reserved.