com.mindbright.terminal
public class TerminalVT100Style extends java.lang.Object implements Terminal, CompatTerminal, DisplayModel
GRAVITY_NORTHWEST, GRAVITY_SOUTHWEST
ATTR_BGCOLOR, ATTR_BLINKING, ATTR_BOLD, ATTR_FGCOLOR, ATTR_INVERSE, ATTR_INVISIBLE, ATTR_LOWINTENSITY, ATTR_UNDERLINE, OPT_ASCII_LDC, OPT_AUTO_LF, OPT_AUTO_WRAP, OPT_COPY_CRNL, OPT_COPY_SEL, OPT_DEC132COLS, OPT_DECCOLM, OPT_INSERTMODE, OPT_LAST_OPT, OPT_LOCAL_ECHO, OPT_LOCAL_PGKEYS, OPT_MAP_CTRLSP, OPT_PASSTHRU_PRN, OPT_REV_VIDEO, OPT_REV_WRAP, OPT_SCROLL_SI, OPT_SCROLL_SK, OPT_VIS_BELL, OPT_VIS_CURSOR
ATTR_BGCOLOR, ATTR_BLINKING, ATTR_BOLD, ATTR_CHARDRAWN, ATTR_CHARNOTDRAWN, ATTR_DWIDTH_L, ATTR_DWIDTH_R, ATTR_FGCOLOR, ATTR_INVERSE, ATTR_INVISIBLE, ATTR_LINEDRAW, ATTR_LOWINTENSITY, ATTR_SELECTED, ATTR_UNDERLINE, MASK_ATTR, MASK_BGCOL, MASK_FGCOL, SHIFT_BGCOL, SHIFT_FGCOL
Constructor and Description |
---|
TerminalVT100Style(TerminalInterpreter interpreter) |
Modifier and Type | Method and Description |
---|---|
void |
clearAbove() |
void |
clearAllAttributes() |
void |
clearAllTabs() |
void |
clearBelow() |
void |
clearLeft() |
void |
clearLine() |
void |
clearRight() |
void |
clearSaveLines() |
void |
clearScreen() |
void |
clearTab(int col) |
void |
close() |
int |
cols() |
void |
cursorBackward(int n) |
void |
cursorDown(int n) |
void |
cursorForward(int n) |
void |
cursorIndex(int n) |
void |
cursorIndexRev(int n) |
void |
cursorRestore() |
void |
cursorSave() |
void |
cursorSetPos(int v,
int h,
boolean relative) |
void |
cursorUp(int n) |
void |
deleteChars(int n) |
void |
deleteLines(int n) |
void |
doBackTabs(int n) |
void |
doBell() |
void |
doBS() |
void |
doClickSelect(int visTop,
int row,
int col,
java.lang.String selectDelims) |
void |
doCR() |
void |
doLF() |
void |
doTab() |
void |
doTabs(int n) |
void |
eraseChars(int n) |
void |
fillScreen(char c) |
void |
fromHost(char c) |
int[] |
getAttribs(int visTop,
int row) |
boolean |
getAttribute(int attr) |
int |
getBufferRows() |
char[] |
getChars(int visTop,
int row) |
int |
getCols() |
int |
getCursorH() |
int |
getCursorV() |
java.lang.String |
getDefaultProperty(java.lang.String key) |
int |
getDisplayCols() |
int |
getDisplayRows() |
boolean |
getOption(int opt) |
TerminalOption[] |
getOptions() |
java.util.Properties |
getProperties() |
java.lang.String |
getProperty(java.lang.String key) |
boolean |
getPropsChanged() |
int |
getRows() |
java.lang.String |
getSelection(java.lang.String eol) |
static Terminal |
getTerminal(java.lang.String type) |
static TerminalOption[] |
getTerminalOptions() |
static java.lang.String[] |
getTerminalTypes() |
int |
getWindowBottom() |
int |
getWindowLeft() |
int |
getWindowRight() |
int |
getWindowTop() |
void |
insertChars(int n) |
void |
insertLines(int n) |
void |
keyHandler(char c,
int virtualKey,
int modifiers) |
void |
mouseHandler(int visTop,
int x,
int y,
boolean press,
int modifiers) |
void |
paste(java.lang.String selection) |
void |
printScreen() |
void |
reset() |
void |
resetClickSelect() |
void |
resetInterpreter() |
void |
resetSelection() |
void |
resetTabs() |
void |
resetWindow() |
void |
ringBell() |
int |
rows() |
void |
screenRestore() |
void |
screenSave() |
void |
scrollDown(int n) |
void |
scrollUp(int n) |
SearchContext |
search(SearchContext lastContext,
java.lang.String key,
boolean reverse,
boolean caseSens) |
void |
selectAll() |
void |
sendBytes(byte[] b) |
void |
setAttribute(int attr,
boolean val) |
void |
setAttributeBold(boolean set) |
void |
setBackgroundColor(int c) |
void |
setCursorPos(int row,
int col) |
void |
setDisplay(DisplayView display) |
void |
setDumbMode(boolean dumb) |
void |
setForegroundColor(int c) |
void |
setInputCharset(java.lang.String charset) |
void |
setOption(int opt,
boolean value) |
void |
setProperties(java.util.Properties newProps) |
boolean |
setProperty(java.lang.String key,
java.lang.String value) |
boolean |
setProperty(java.lang.String key,
java.lang.String value,
boolean forceSet) |
void |
setPropsChanged(boolean value) |
boolean |
setSaveLines(int lines) |
void |
setSelection(int row1,
int col1,
int row2,
int col2) |
void |
setSelection(int visTop,
int row1,
int col1,
int row2,
int col2) |
boolean |
setSize(int rows,
int cols) |
void |
setTab(int col) |
boolean |
setTerminalType(java.lang.String type) |
void |
setTerminalWindow(TerminalWindow termWin) |
void |
setTitle(java.lang.String title) |
void |
setUpdate(boolean enabled) |
void |
setWindow(int top,
int bottom) |
void |
setWindow(int top,
int right,
int bottom,
int left) |
void |
startPrinter() |
void |
stopPrinter() |
java.lang.String |
terminalType() |
void |
typedChar(char c) |
void |
write(char c) |
void |
write(char[] c,
int off,
int len) |
void |
write(java.lang.String str) |
void |
writeLineDrawChar(char c) |
public TerminalVT100Style(TerminalInterpreter interpreter)
public static java.lang.String[] getTerminalTypes()
public static Terminal getTerminal(java.lang.String type)
public static TerminalOption[] getTerminalOptions()
public java.lang.String terminalType()
terminalType
in interface Terminal
public boolean setTerminalType(java.lang.String type)
setTerminalType
in interface Terminal
public void setDumbMode(boolean dumb)
setDumbMode
in interface Terminal
public void keyHandler(char c, int virtualKey, int modifiers)
keyHandler
in interface Terminal
public void mouseHandler(int visTop, int x, int y, boolean press, int modifiers)
mouseHandler
in interface Terminal
public void setInputCharset(java.lang.String charset) throws java.lang.IllegalArgumentException
setInputCharset
in interface Terminal
java.lang.IllegalArgumentException
public boolean setSaveLines(int lines)
setSaveLines
in interface Terminal
public void clearSaveLines()
clearSaveLines
in interface Terminal
public void doClickSelect(int visTop, int row, int col, java.lang.String selectDelims)
doClickSelect
in interface Terminal
public java.lang.String getSelection(java.lang.String eol)
getSelection
in interface Terminal
public void setSelection(int visTop, int row1, int col1, int row2, int col2)
setSelection
in interface Terminal
public void setSelection(int row1, int col1, int row2, int col2)
setSelection
in interface Terminal
public void resetSelection()
resetSelection
in interface Terminal
public void resetClickSelect()
resetClickSelect
in interface Terminal
public void setTerminalWindow(TerminalWindow termWin)
setTerminalWindow
in interface Terminal
public void setDisplay(DisplayView display)
setDisplay
in interface Terminal
public void setProperties(java.util.Properties newProps)
setProperties
in interface Terminal
public boolean setProperty(java.lang.String key, java.lang.String value)
public boolean setProperty(java.lang.String key, java.lang.String value, boolean forceSet)
setProperty
in interface Terminal
public java.util.Properties getProperties()
getProperties
in interface Terminal
public java.lang.String getProperty(java.lang.String key)
getProperty
in interface Terminal
public boolean getPropsChanged()
getPropsChanged
in interface Terminal
public void setPropsChanged(boolean value)
setPropsChanged
in interface Terminal
public java.lang.String getDefaultProperty(java.lang.String key)
getDefaultProperty
in interface Terminal
public TerminalOption[] getOptions()
getOptions
in interface Terminal
public void setAttributeBold(boolean set)
setAttributeBold
in interface Terminal
public void setCursorPos(int row, int col)
setCursorPos
in interface Terminal
public char[] getChars(int visTop, int row)
getChars
in interface DisplayModel
public int[] getAttribs(int visTop, int row)
getAttribs
in interface DisplayModel
public int getDisplayRows()
getDisplayRows
in interface DisplayModel
public int getDisplayCols()
getDisplayCols
in interface DisplayModel
public int getBufferRows()
getBufferRows
in interface DisplayModel
public void setTitle(java.lang.String title)
setTitle
in interface CompatTerminal
public int rows()
rows
in interface CompatTerminal
public int cols()
cols
in interface CompatTerminal
public void fillScreen(char c)
fillScreen
in interface CompatTerminal
public void write(char c)
write
in interface CompatTerminal
public void write(char[] c, int off, int len)
write
in interface CompatTerminal
public void write(java.lang.String str)
write
in interface CompatTerminal
public void writeLineDrawChar(char c)
writeLineDrawChar
in interface CompatTerminal
public void typedChar(char c)
typedChar
in interface CompatTerminal
public void sendBytes(byte[] b)
sendBytes
in interface CompatTerminal
public void doBell()
doBell
in interface CompatTerminal
public void doBS()
doBS
in interface CompatTerminal
public void doTab()
doTab
in interface CompatTerminal
public void doTabs(int n)
doTabs
in interface CompatTerminal
public void doBackTabs(int n)
doBackTabs
in interface CompatTerminal
public void setTab(int col)
setTab
in interface CompatTerminal
public void clearTab(int col)
clearTab
in interface CompatTerminal
public void resetTabs()
resetTabs
in interface CompatTerminal
public void clearAllTabs()
clearAllTabs
in interface CompatTerminal
public void doCR()
doCR
in interface CompatTerminal
public void doLF()
doLF
in interface CompatTerminal
public void resetInterpreter()
resetInterpreter
in interface CompatTerminal
public void resetWindow()
resetWindow
in interface CompatTerminal
public void setWindow(int top, int bottom)
setWindow
in interface CompatTerminal
public void setWindow(int top, int right, int bottom, int left)
setWindow
in interface CompatTerminal
public int getWindowTop()
getWindowTop
in interface CompatTerminal
public int getWindowBottom()
getWindowBottom
in interface CompatTerminal
public int getWindowLeft()
getWindowLeft
in interface CompatTerminal
public int getWindowRight()
getWindowRight
in interface CompatTerminal
public int getCursorV()
getCursorV
in interface CompatTerminal
public int getCursorH()
getCursorH
in interface CompatTerminal
public void cursorSetPos(int v, int h, boolean relative)
cursorSetPos
in interface CompatTerminal
public void cursorUp(int n)
cursorUp
in interface CompatTerminal
public void cursorDown(int n)
cursorDown
in interface CompatTerminal
public void cursorForward(int n)
cursorForward
in interface CompatTerminal
public void cursorBackward(int n)
cursorBackward
in interface CompatTerminal
public void cursorIndex(int n)
cursorIndex
in interface CompatTerminal
public void cursorIndexRev(int n)
cursorIndexRev
in interface CompatTerminal
public void cursorSave()
cursorSave
in interface CompatTerminal
public void cursorRestore()
cursorRestore
in interface CompatTerminal
public void screenSave()
screenSave
in interface CompatTerminal
public void screenRestore()
screenRestore
in interface CompatTerminal
public void scrollUp(int n)
scrollUp
in interface CompatTerminal
public void scrollDown(int n)
scrollDown
in interface CompatTerminal
public void clearBelow()
clearBelow
in interface CompatTerminal
public void clearAbove()
clearAbove
in interface CompatTerminal
public void clearScreen()
clearScreen
in interface CompatTerminal
clearScreen
in interface Terminal
public void clearRight()
clearRight
in interface CompatTerminal
public void clearLeft()
clearLeft
in interface CompatTerminal
public void clearLine()
clearLine
in interface CompatTerminal
clearLine
in interface Terminal
public void eraseChars(int n)
eraseChars
in interface CompatTerminal
public void insertChars(int n)
insertChars
in interface CompatTerminal
public void insertLines(int n)
insertLines
in interface CompatTerminal
public void deleteChars(int n)
deleteChars
in interface CompatTerminal
public void deleteLines(int n)
deleteLines
in interface CompatTerminal
public void printScreen()
printScreen
in interface CompatTerminal
public void startPrinter()
startPrinter
in interface CompatTerminal
public void stopPrinter()
stopPrinter
in interface CompatTerminal
public void setOption(int opt, boolean value)
setOption
in interface CompatTerminal
public boolean getOption(int opt)
getOption
in interface CompatTerminal
public SearchContext search(SearchContext lastContext, java.lang.String key, boolean reverse, boolean caseSens)
public void setAttribute(int attr, boolean val)
setAttribute
in interface CompatTerminal
public boolean getAttribute(int attr)
getAttribute
in interface CompatTerminal
public void setForegroundColor(int c)
setForegroundColor
in interface CompatTerminal
public void setBackgroundColor(int c)
setBackgroundColor
in interface CompatTerminal
public void clearAllAttributes()
clearAllAttributes
in interface CompatTerminal