com.sshtools.daemon.terminal

Interface Terminal

Known Implementing Classes:
ansi, BasicTerminal, vt100, xterm

public interface Terminal

Version:
$Revision: 1.11 $
Author:
$author$

Field Summary

static byte
A
static byte
B
static byte
BS
static byte
C
static byte
CAN
static byte
D
static byte
DEL
static byte
E
static byte
EOT
static byte
ESC
static byte
FF
static byte
H
static byte
HT
static byte
LE
static byte
LSB
static byte
SE
static byte
SEMICOLON
static byte
SGR
static byte
f
static byte
r

Method Summary

String
format(String str)
int
getAtomicSequenceLength()
byte[]
getCursorMoveSequence(int dir, int times)
byte[]
getCursorPositioningSequence(int[] pos)
byte[]
getEraseSequence(int eraseFunc)
byte[]
getGRSequence(int type, int param)
byte[]
getInitSequence()
String
getName()
byte[]
getScrollMarginsSequence(int topmargin, int bottommargin)
byte[]
getSpecialSequence(int sequence)
boolean
supportsSGR()
boolean
supportsScrolling()
int
translateControlCharacter(int byteread)
int
translateEscapeSequence(int[] buffer)

Field Details

A

public static final byte A
Field Value:
65

B

public static final byte B
Field Value:
66

BS

public static final byte BS
Field Value:
8

C

public static final byte C
Field Value:
67

CAN

public static final byte CAN
Field Value:
24

D

public static final byte D
Field Value:
68

DEL

public static final byte DEL
Field Value:
127

E

public static final byte E
Field Value:
69

EOT

public static final byte EOT
Field Value:
4

ESC

public static final byte ESC
Field Value:
27

FF

public static final byte FF
Field Value:
12

H

public static final byte H
Field Value:
72

HT

public static final byte HT
Field Value:
9

LE

public static final byte LE
Field Value:
75

LSB

public static final byte LSB
Field Value:
91

SE

public static final byte SE
Field Value:
74

SEMICOLON

public static final byte SEMICOLON
Field Value:
59

SGR

public static final byte SGR
Field Value:
1

f

public static final byte f
Field Value:
102

r

public static final byte r
Field Value:
114

Method Details

format

public String format(String str)
Parameters:
str -
Returns:

getAtomicSequenceLength

public int getAtomicSequenceLength()
Returns:

getCursorMoveSequence

public byte[] getCursorMoveSequence(int dir,
                                    int times)
Parameters:
dir -
times -
Returns:

getCursorPositioningSequence

public byte[] getCursorPositioningSequence(int[] pos)
Parameters:
pos -
Returns:

getEraseSequence

public byte[] getEraseSequence(int eraseFunc)
Parameters:
eraseFunc -
Returns:

getGRSequence

public byte[] getGRSequence(int type,
                            int param)
Parameters:
type -
param -
Returns:

getInitSequence

public byte[] getInitSequence()
Returns:

getName

public String getName()
Returns:

getScrollMarginsSequence

public byte[] getScrollMarginsSequence(int topmargin,
                                       int bottommargin)
Parameters:
topmargin -
bottommargin -
Returns:

getSpecialSequence

public byte[] getSpecialSequence(int sequence)
Parameters:
sequence -
Returns:

supportsSGR

public boolean supportsSGR()
Returns:

supportsScrolling

public boolean supportsScrolling()
Returns:

translateControlCharacter

public int translateControlCharacter(int byteread)
Parameters:
byteread -
Returns:

translateEscapeSequence

public int translateEscapeSequence(int[] buffer)
Parameters:
buffer -
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.