org.apache.karaf.shell.ssh
Class SshTerminal

java.lang.Object
  extended by jline.TerminalSupport
      extended by org.apache.karaf.shell.ssh.SshTerminal
All Implemented Interfaces:
jline.Terminal

public class SshTerminal
extends jline.TerminalSupport


Nested Class Summary
static class SshTerminal.UnixKey
          Unix keys.
 
Nested classes/interfaces inherited from class jline.TerminalSupport
jline.TerminalSupport.RestoreHook
 
Field Summary
 
Fields inherited from class jline.TerminalSupport
DEFAULT_HEIGHT, DEFAULT_KEYBINDINGS_PROPERTIES, DEFAULT_WIDTH
 
Constructor Summary
SshTerminal(org.apache.sshd.server.Environment environment)
           
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 void init()
           
 int readVirtualKey(java.io.InputStream in)
           
 void restore()
           
 
Methods inherited from class jline.TerminalSupport
getDefaultBindings, installShutdownHook, isAnsiSupported, isEchoEnabled, isSupported, readCharacter, removeShutdownHook, reset, setAnsiSupported, setEchoEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshTerminal

public SshTerminal(org.apache.sshd.server.Environment environment)
Method Detail

init

public void init()
          throws Exception
Specified by:
init in interface jline.Terminal
Overrides:
init in class jline.TerminalSupport
Throws:
Exception

restore

public void restore()
             throws Exception
Specified by:
restore in interface jline.Terminal
Overrides:
restore in class jline.TerminalSupport
Throws:
Exception

getWidth

public int getWidth()
Specified by:
getWidth in interface jline.Terminal
Overrides:
getWidth in class jline.TerminalSupport

getHeight

public int getHeight()
Specified by:
getHeight in interface jline.Terminal
Overrides:
getHeight in class jline.TerminalSupport

readVirtualKey

public int readVirtualKey(java.io.InputStream in)
                   throws java.io.IOException
Specified by:
readVirtualKey in interface jline.Terminal
Overrides:
readVirtualKey in class jline.TerminalSupport
Throws:
java.io.IOException


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.