"Terminal Interface extensions"

term EXTENSIONS
* SHOW-TERMCAP ( -- ) for debugging

print the termcap strings used for input and output
may give hints about what is wrong if the terminal
seems to miss some functionality

EXTENSIONS term ordinary primitive

* SHOW-TERM-CONTROLS ( -- ) for debugging

show the current mappings for the terminal output
may give hints about what is wrong if the output
seems to miss some functionality

EXTENSIONS term ordinary primitive

* SHOW-TERM-ESC-KEYS ( -- ) for debugging

show the current mappings for the terminal input
may give hints about what is wrong if the input
seems to miss some functionality

EXTENSIONS term ordinary primitive

* ASSUME_VT100 ( -- )

load hardwired VT100-termcap into the terminal-driver

EXTENSIONS term ordinary primitive

* ASSUME_DUMBTERM ( -- )

load hardwired DUMBTERM-termcap into the terminal-driver

EXTENSIONS term ordinary primitive

* words for more advanced screen control
    ROWS

[] no special info, see general notes

EXTENSIONS term threadstate variable

COLS

[] no special info, see general notes

EXTENSIONS term threadstate variable

XMAX

[] no special info, see general notes

EXTENSIONS term threadstate variable

YMAX

[] no special info, see general notes

EXTENSIONS term threadstate variable

* GOTOXY ( x y -- )

move the cursor to the specified position on the screen -
this is usually done by sending a corresponding esc-sequence
to the terminal.

EXTENSIONS term ordinary primitive

* ?XY ( -- x y )

returns the cursor position on screen, on a real unix system
this includes a special call to the screen driver, in remote
systems this can be the expected position as seen on the
client side's terminal driver.

EXTENSIONS term ordinary primitive

CLS

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.CLRSCR

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.CLREOL

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.HOME

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.HIGHLIGHT

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.HIGHLIGHT.OFF

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.UNDERLINE

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.UNDERLINE.OFF

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.INTENSITY

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.INTENSITY.OFF

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.BLINKING

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.BLINKING.OFF

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.REVERSE

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.REVERSE.OFF

[] no special info, see general notes

EXTENSIONS term ordinary primitive

.NORMAL

[] no special info, see general notes

EXTENSIONS term ordinary primitive

/** ring the bell on the terminal (output the corresponding control) */
.BELL

[] no special info, see general notes

EXTENSIONS term ordinary primitive

/** EKEY code constants for function keys */
K-LEFT

[] no special info, see general notes

EXTENSIONS term ordinary constant

K-RIGHT

[] no special info, see general notes

EXTENSIONS term ordinary constant

K-UP

[] no special info, see general notes

EXTENSIONS term ordinary constant

K-DOWN

[] no special info, see general notes

EXTENSIONS term ordinary constant

K-HOME

[] no special info, see general notes

EXTENSIONS term ordinary constant

K-END

[] no special info, see general notes

EXTENSIONS term ordinary constant

K-PRIOR

[] no special info, see general notes

EXTENSIONS term ordinary constant

K-NEXT

[] no special info, see general notes

EXTENSIONS term ordinary constant

K1

[] no special info, see general notes

EXTENSIONS term ordinary constant

K2

[] no special info, see general notes

EXTENSIONS term ordinary constant

K3

[] no special info, see general notes

EXTENSIONS term ordinary constant

K4

[] no special info, see general notes

EXTENSIONS term ordinary constant

K5

[] no special info, see general notes

EXTENSIONS term ordinary constant

K6

[] no special info, see general notes

EXTENSIONS term ordinary constant

K7

[] no special info, see general notes

EXTENSIONS term ordinary constant

K8

[] no special info, see general notes

EXTENSIONS term ordinary constant

K9

[] no special info, see general notes

EXTENSIONS term ordinary constant

K10

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K1

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K2

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K3

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K4

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K5

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K6

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K7

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K8

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K9

[] no special info, see general notes

EXTENSIONS term ordinary constant

S-K10

[] no special info, see general notes

EXTENSIONS term ordinary constant