Package javaforce.ansi.client
Class Buffer
java.lang.Object
javaforce.ansi.client.Buffer
- All Implemented Interfaces:
Screen
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanintintbooleanLine[]The actual screen buffer.intNumber of lines that user can scroll back to.intintintintintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]byte2char(byte[] buf, int buflen) voidchangeScrollBack(int newSize) voidchangeSize(Dimension extent) byte[]char2byte(char[] buf, int buflen) voidvoidclose()voidclrscr()voidcopy()voiddelete()intintintgetsx()intgetsy()intgetx()Get cursor x (1,1 = top left)intgety()Get cursor y (1,1 = top left)intgety1()intgety2()voidgotoPos(int x, int y) Set cursor pos (1,1 = top left)booleanvoidinit()voidinsert()voidnextTab()voidoutput(char ch) voidoutput(char[] buf) voidpaste()voidprevTab()voidprint(char ch) voidprint(char[] buf, int buflen) voidvoidscrollDown(int cnt) voidscrollUp(int cnt) voidsetAutoWrap(boolean state) voidsetBackColor(int newClr) voidsetBlinker(boolean state) voidsetChar(int x, int y, char ch) Sets a char in buffer.voidsetForeColor(int newClr) voidvoidsetReverse(boolean state) voidsetTab(int idx) voidsety1(int v) voidsety2(int v) voidvoidsignalRepaint(boolean findScreen, boolean revalidate) voidvoidtimer()toString()
-
Field Details
-
profile
-
ui
-
sx
public int sx -
sy
public int sy -
script
-
scrollBack
public int scrollBackNumber of lines that user can scroll back to. -
ansi
-
lines
The actual screen buffer. -
cx
public int cx -
cy
public int cy -
cursorShown
public boolean cursorShown -
selectStartY
public int selectStartY -
selectEndY
public int selectEndY -
selectStartX
public int selectStartX -
selectEndX
public int selectEndX -
fos
-
blinkerShown
public boolean blinkerShown -
connected
public boolean connected -
failed
public boolean failed -
closed
public boolean closed
-
-
Constructor Details
-
Buffer
-
-
Method Details
-
init
public void init() -
char2byte
public byte[] char2byte(char[] buf, int buflen) -
byte2char
public char[] byte2char(byte[] buf, int buflen) -
output
public void output(char[] buf) -
output
public void output(char ch) -
changeSize
-
changeScrollBack
public void changeScrollBack(int newSize) -
setForeColor
public void setForeColor(int newClr) - Specified by:
setForeColorin interfaceScreen
-
setBackColor
public void setBackColor(int newClr) - Specified by:
setBackColorin interfaceScreen
-
setBlinker
public void setBlinker(boolean state) - Specified by:
setBlinkerin interfaceScreen
-
setReverse
public void setReverse(boolean state) - Specified by:
setReversein interfaceScreen
-
getForeColor
public int getForeColor()- Specified by:
getForeColorin interfaceScreen
-
getBackColor
public int getBackColor()- Specified by:
getBackColorin interfaceScreen
-
clrscr
public void clrscr() -
print
-
print
public void print(char[] buf, int buflen) -
print
public void print(char ch) -
setChar
public void setChar(int x, int y, char ch) Sets a char in buffer. (1,1 = top left) -
setAutoWrap
public void setAutoWrap(boolean state) - Specified by:
setAutoWrapin interfaceScreen
-
getsx
public int getsx() -
getsy
public int getsy() -
getx
public int getx()Get cursor x (1,1 = top left) -
gety
public int gety()Get cursor y (1,1 = top left) -
gotoPos
public void gotoPos(int x, int y) Set cursor pos (1,1 = top left) -
gety1
public int gety1() -
gety2
public int gety2() -
sety1
public void sety1(int v) -
sety2
public void sety2(int v) -
scrollUp
public void scrollUp(int cnt) -
scrollDown
public void scrollDown(int cnt) - Specified by:
scrollDownin interfaceScreen
-
delete
public void delete() -
insert
public void insert() -
close
public void close() -
getTermType
- Specified by:
getTermTypein interfaceScreen
-
nextTab
public void nextTab() -
prevTab
public void prevTab() -
setTab
public void setTab(int idx) -
setName
-
signalReconnect
public void signalReconnect() -
signalRepaint
public void signalRepaint(boolean findScreen, boolean revalidate) -
have_selection
public boolean have_selection() -
clear_selection
public void clear_selection() -
swap_selection
public void swap_selection() -
copy
public void copy() -
paste
public void paste() -
toString
-
timer
public void timer()
-