public class Terminal extends Object
Modifier and Type | Field and Description |
---|---|
int |
height
Screen width and height.
|
char[] |
scr
This is typed as 'char' but it's not character that's stored.
|
boolean |
showCursor
True if the cursor should be displayed.
|
int |
width
Screen width and height.
|
Constructor and Description |
---|
Terminal(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
csi_a(int[] args) |
void |
csi_A(int[] i) |
void |
csi_B(int[] i) |
void |
csi_c(int[] args) |
void |
csi_C(int[] i) |
void |
csi_d(int[] args) |
void |
csi_D(int[] i) |
void |
csi_e(int[] args) |
void |
csi_E(int[] i) |
void |
csi_f(int[] args) |
void |
csi_F(int[] i) |
void |
csi_G(int[] i) |
void |
csi_h(int[] args) |
void |
csi_H(int[] i) |
void |
csi_J(int[] i) |
void |
csi_K(int... i) |
void |
csi_l(int[] args) |
void |
csi_L(int[] args)
Insert lines.
|
void |
csi_m(int[] args) |
void |
csi_M(int[] args)
Delete lines.
|
void |
csi_P(int[] args)
Delete n chars
|
void |
csi_r(int[] args) |
void |
csi_s(int[] args) |
void |
csi_u(int[] args) |
void |
csi_X(int[] args) |
void |
cursorDown() |
void |
cursorRight() |
String |
dump() |
ScreenImage |
dumpHtml(boolean color,
int clientTimestamp) |
String |
dumpLatin1() |
void |
echo(char c) |
void |
esc_0x08()
Backspace.
|
void |
esc_0x09()
Tab.
|
void |
esc_0x0d()
Carriage return
|
void |
esc_da() |
void |
escape() |
void |
escRi() |
int |
getCx() |
int |
getCy() |
void |
noOp() |
String |
peek(int y1,
int y2) |
String |
peek(int y1,
int x1,
int y2,
int x2) |
void |
poke(int y,
int x,
String s) |
void |
poke(int y,
String s) |
String |
read() |
void |
reset() |
void |
restoreCursor() |
void |
saveCursor() |
void |
scrollDown(int y1,
int y2) |
void |
scrollRight(int y,
int x) |
void |
scrollUp(int y1,
int y2)
Scroll the (y1+1,y2) region up one line to (y1,y2-1)
|
void |
setCssClass(String cssClass)
Sets additional CSS classes for the terminal element.
|
void |
write(String s)
Receives the output from the forked process into the terminal.
|
void |
zero(int y1,
int y2) |
void |
zero(int y1,
int x1,
int y2,
int x2) |
public char[] scr
public final int width
public final int height
public boolean showCursor
public void setCssClass(String cssClass)
public int getCx()
public int getCy()
public void reset()
public String peek(int y1, int y2)
public String peek(int y1, int x1, int y2, int x2)
public void poke(int y, int x, String s)
public void poke(int y, String s)
public void zero(int y1, int x1, int y2, int x2)
public void zero(int y1, int y2)
public void scrollUp(int y1, int y2)
public void scrollDown(int y1, int y2)
public void scrollRight(int y, int x)
public void cursorDown()
public void cursorRight()
public void echo(char c)
public void escape()
public void write(String s)
public String read()
public String dump()
public String dumpLatin1()
public ScreenImage dumpHtml(boolean color, int clientTimestamp)
color
- If we want the color coded output. It'll make the response bit bigger.clientTimestamp
- The value of ScreenImage.timestamp
that the client currently has.
This information is used to avoid unnecessary screen refresh.public void esc_da()
public void esc_0x08()
public void esc_0x09()
public void esc_0x0d()
public void noOp()
public void saveCursor()
public void restoreCursor()
public void escRi()
public void csi_A(int[] i)
public void csi_B(int[] i)
public void csi_C(int[] i)
public void csi_D(int[] i)
public void csi_E(int[] i)
public void csi_F(int[] i)
public void csi_G(int[] i)
public void csi_H(int[] i)
public void csi_J(int[] i)
public void csi_K(int... i)
public void csi_L(int[] args)
public void csi_M(int[] args)
public void csi_P(int[] args)
public void csi_X(int[] args)
public void csi_a(int[] args)
public void csi_c(int[] args)
public void csi_d(int[] args)
public void csi_e(int[] args)
public void csi_f(int[] args)
public void csi_h(int[] args)
public void csi_l(int[] args)
public void csi_m(int[] args)
public void csi_r(int[] args)
public void csi_s(int[] args)
public void csi_u(int[] args)
Copyright © 2015. All rights reserved.