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

Method Summary
 InputStream getDefaultBindings()
           
 int getHeight()
           
 int getWidth()
           
 void init()
           
 boolean isAnsiSupported()
           
 boolean isEchoEnabled()
           
 boolean isSupported()
           
 int readCharacter(InputStream in)
           
 int readVirtualKey(InputStream in)
           
 void reset()
           
 void restore()
           
 void setEchoEnabled(boolean enabled)
           
 

Method Detail

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.