com.maverick.sshd.shell.terminal
Class BasicTerminal

java.lang.Object
  extended by com.maverick.sshd.shell.terminal.BasicTerminal
All Implemented Interfaces:
Terminal
Direct Known Subclasses:
ansi, vt100

public abstract class BasicTerminal
extends Object
implements Terminal


Field Summary
protected  Colorizer myColorizer
           
 
Fields inherited from interface com.maverick.sshd.shell.terminal.Terminal
A, B, BS, C, CAN, D, DEL, E, EOT, ESC, f, FF, H, HT, LE, LSB, r, SE, SEMICOLON, SGR
 
Constructor Summary
BasicTerminal()
           
 
Method Summary
 String format(String str)
           
 int getAtomicSequenceLength()
           
 byte[] getCursorMoveSequence(int direction, int times)
           
 byte[] getCursorPositioningSequence(int[] pos)
           
 byte[] getEraseSequence(int eraseFunc)
           
 byte[] getGRSequence(int type, int param)
           
 byte[] getInitSequence()
           
 byte[] getScrollMarginsSequence(int topmargin, int bottommargin)
           
 byte[] getSpecialSequence(int function)
           
abstract  boolean supportsScrolling()
           
abstract  boolean supportsSGR()
           
 byte[] translateIntToDigitCodes(int in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myColorizer

protected Colorizer myColorizer
Constructor Detail

BasicTerminal

public BasicTerminal()
Method Detail

getCursorMoveSequence

public byte[] getCursorMoveSequence(int direction,
                                    int times)
Specified by:
getCursorMoveSequence in interface Terminal

getCursorPositioningSequence

public byte[] getCursorPositioningSequence(int[] pos)
Specified by:
getCursorPositioningSequence in interface Terminal

getEraseSequence

public byte[] getEraseSequence(int eraseFunc)
Specified by:
getEraseSequence in interface Terminal

getSpecialSequence

public byte[] getSpecialSequence(int function)
Specified by:
getSpecialSequence in interface Terminal

getGRSequence

public byte[] getGRSequence(int type,
                            int param)
Specified by:
getGRSequence in interface Terminal

getScrollMarginsSequence

public byte[] getScrollMarginsSequence(int topmargin,
                                       int bottommargin)
Specified by:
getScrollMarginsSequence in interface Terminal

format

public String format(String str)
Specified by:
format in interface Terminal

getInitSequence

public byte[] getInitSequence()
Specified by:
getInitSequence in interface Terminal

getAtomicSequenceLength

public int getAtomicSequenceLength()
Specified by:
getAtomicSequenceLength in interface Terminal

translateIntToDigitCodes

public byte[] translateIntToDigitCodes(int in)

supportsSGR

public abstract boolean supportsSGR()
Specified by:
supportsSGR in interface Terminal

supportsScrolling

public abstract boolean supportsScrolling()
Specified by:
supportsScrolling in interface Terminal


Copyright © 2012. All Rights Reserved.