com.sshtools.daemon.terminal
Class BasicTerminal
java.lang.Object
com.sshtools.daemon.terminal.BasicTerminal
- All Implemented Interfaces:
- Terminal
- Direct Known Subclasses:
- ansi, vt100, xterm
public abstract class BasicTerminal
- extends java.lang.Object
- implements Terminal
- Version:
- $Revision: 1.11 $
- Author:
- $author$
Fields inherited from interface com.sshtools.daemon.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()
Creates a new BasicTerminal object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sshtools.daemon.terminal.Terminal |
getName |
myColorizer
protected Colorizer myColorizer
BasicTerminal
public BasicTerminal()
- Creates a new BasicTerminal object.
translateControlCharacter
public int translateControlCharacter(int c)
- Specified by:
translateControlCharacter
in interface Terminal
- Returns:
translateEscapeSequence
public int translateEscapeSequence(int[] buffer)
- Specified by:
translateEscapeSequence
in interface Terminal
- Returns:
getCursorMoveSequence
public byte[] getCursorMoveSequence(int direction,
int times)
- Specified by:
getCursorMoveSequence
in interface Terminal
- Returns:
getCursorPositioningSequence
public byte[] getCursorPositioningSequence(int[] pos)
- Specified by:
getCursorPositioningSequence
in interface Terminal
- Returns:
getEraseSequence
public byte[] getEraseSequence(int eraseFunc)
- Specified by:
getEraseSequence
in interface Terminal
- Returns:
getSpecialSequence
public byte[] getSpecialSequence(int function)
- Specified by:
getSpecialSequence
in interface Terminal
- Returns:
getGRSequence
public byte[] getGRSequence(int type,
int param)
- Specified by:
getGRSequence
in interface Terminal
- Returns:
getScrollMarginsSequence
public byte[] getScrollMarginsSequence(int topmargin,
int bottommargin)
- Specified by:
getScrollMarginsSequence
in interface Terminal
- Returns:
format
public java.lang.String format(java.lang.String str)
- Specified by:
format
in interface Terminal
- Returns:
getInitSequence
public byte[] getInitSequence()
- Specified by:
getInitSequence
in interface Terminal
- Returns:
getAtomicSequenceLength
public int getAtomicSequenceLength()
- Specified by:
getAtomicSequenceLength
in interface Terminal
- Returns:
translateIntToDigitCodes
public byte[] translateIntToDigitCodes(int in)
supportsSGR
public abstract boolean supportsSGR()
- Specified by:
supportsSGR
in interface Terminal
- Returns:
supportsScrolling
public abstract boolean supportsScrolling()
- Specified by:
supportsScrolling
in interface Terminal
- Returns:
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.