"Terminal Interface extensions"

term
this wordset exports words to talk to the terminal driver
of forth. Depending on the active terminal driver, not
all of these words are fully functional.
Tektronix CTE %version: 5.11 % GNU LGPL
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

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

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

term ordinary primitive

* ASSUME_VT100 ( -- )

load hardwired VT100-termcap into the terminal-driver

term ordinary primitive

* ASSUME_DUMBTERM ( -- )

load hardwired DUMBTERM-termcap into the terminal-driver

term ordinary primitive

* words for more advanced screen control
EXTENSIONS ROWS

no special info, see general notes

term threadstate variable

EXTENSIONS COLS

no special info, see general notes

term threadstate variable

EXTENSIONS XMAX

no special info, see general notes

term threadstate variable

EXTENSIONS YMAX

no special info, see general notes

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.

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.

term ordinary primitive

EXTENSIONS CLS

no special info, see general notes

term ordinary primitive

EXTENSIONS .CLRSCR

no special info, see general notes

term ordinary primitive

EXTENSIONS .CLREOL

no special info, see general notes

term ordinary primitive

EXTENSIONS .HOME

no special info, see general notes

term ordinary primitive

EXTENSIONS .HIGHLIGHT

no special info, see general notes

term ordinary primitive

EXTENSIONS .HIGHLIGHT.OFF

no special info, see general notes

term ordinary primitive

EXTENSIONS .UNDERLINE

no special info, see general notes

term ordinary primitive

EXTENSIONS .UNDERLINE.OFF

no special info, see general notes

term ordinary primitive

EXTENSIONS .INTENSITY

no special info, see general notes

term ordinary primitive

EXTENSIONS .INTENSITY.OFF

no special info, see general notes

term ordinary primitive

EXTENSIONS .BLINKING

no special info, see general notes

term ordinary primitive

EXTENSIONS .BLINKING.OFF

no special info, see general notes

term ordinary primitive

EXTENSIONS .REVERSE

no special info, see general notes

term ordinary primitive

EXTENSIONS .REVERSE.OFF

no special info, see general notes

term ordinary primitive

EXTENSIONS .NORMAL

no special info, see general notes

term ordinary primitive

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

no special info, see general notes

term ordinary primitive

* EKEY code constants for function keys
EXTENSIONS K-LEFT

no special info, see general notes

term ordinary constant

EXTENSIONS K-RIGHT

no special info, see general notes

term ordinary constant

EXTENSIONS K-UP

no special info, see general notes

term ordinary constant

EXTENSIONS K-DOWN

no special info, see general notes

term ordinary constant

EXTENSIONS K-HOME

no special info, see general notes

term ordinary constant

EXTENSIONS K-END

no special info, see general notes

term ordinary constant

EXTENSIONS K-PRIOR

no special info, see general notes

term ordinary constant

EXTENSIONS K-NEXT

no special info, see general notes

term ordinary constant

EXTENSIONS K1

no special info, see general notes

term ordinary constant

EXTENSIONS K2

no special info, see general notes

term ordinary constant

EXTENSIONS K3

no special info, see general notes

term ordinary constant

EXTENSIONS K4

no special info, see general notes

term ordinary constant

EXTENSIONS K5

no special info, see general notes

term ordinary constant

EXTENSIONS K6

no special info, see general notes

term ordinary constant

EXTENSIONS K7

no special info, see general notes

term ordinary constant

EXTENSIONS K8

no special info, see general notes

term ordinary constant

EXTENSIONS K9

no special info, see general notes

term ordinary constant

EXTENSIONS K10

no special info, see general notes

term ordinary constant

EXTENSIONS S-K1

no special info, see general notes

term ordinary constant

EXTENSIONS S-K2

no special info, see general notes

term ordinary constant

EXTENSIONS S-K3

no special info, see general notes

term ordinary constant

EXTENSIONS S-K4

no special info, see general notes

term ordinary constant

EXTENSIONS S-K5

no special info, see general notes

term ordinary constant

EXTENSIONS S-K6

no special info, see general notes

term ordinary constant

EXTENSIONS S-K7

no special info, see general notes

term ordinary constant

EXTENSIONS S-K8

no special info, see general notes

term ordinary constant

EXTENSIONS S-K9

no special info, see general notes

term ordinary constant

EXTENSIONS S-K10

no special info, see general notes

term ordinary constant