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.
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
reference: p4_show_termcap in ../src/term.c:0324, export CO SHOW-TERMCAP
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
reference: p4_show_control_strings in ../src/term.c:0262, export CO SHOW-TERM-CONTROLS
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
reference: p4_show_rawkey_strings in ../src/term.c:0293, export CO SHOW-TERM-ESC-KEYS
ASSUME_VT100 ( -- )
-
load hardwired VT100-termcap into the terminal-driver
reference: p4_assume_vt100 in ../src/term.c:0497, export CO ASSUME_VT100
ASSUME_DUMBTERM ( -- )
-
load hardwired DUMBTERM-termcap into the terminal-driver
reference: p4_assume_dumbterm in ../src/term.c:0506, export CO ASSUME_DUMBTERM
ROWS
- dict-variable
words for more advanced screen control
reference: rows in ../src/term.c:0596, export DV ROWS
COLS
- dict-variable
words for more advanced screen control
reference: cols in ../src/term.c:0597, export DV COLS
XMAX
- dict-variable
words for more advanced screen control
reference: xmax in ../src/term.c:0598, export DV XMAX
YMAX
- dict-variable
words for more advanced screen control
reference: ymax in ../src/term.c:0599, export DV YMAX
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.
reference: p4_gotoxy in ../src/term.c:0545, export CO GOTOXY
?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.
reference: p4_question_xy in ../src/term.c:0557, export CO ?XY
CLS
-
words for more advanced screen control
reference: p4_dot_clrscr in ../src/term.c:0602, export CO CLS
.CLRSCR
-
words for more advanced screen control
reference: p4_dot_clrscr in ../src/term.c:0603, export CO .CLRSCR
.CLREOL
-
words for more advanced screen control
reference: p4_dot_clreol in ../src/term.c:0604, export CO .CLREOL
.HOME
-
words for more advanced screen control
reference: p4_dot_home in ../src/term.c:0605, export CO .HOME
.HIGHLIGHT
-
words for more advanced screen control
reference: p4_dot_highlight in ../src/term.c:0606, export CO .HIGHLIGHT
.HIGHLIGHT.OFF
-
words for more advanced screen control
reference: p4_dot_highlight_off in ../src/term.c:0607, export CO .HIGHLIGHT.OFF
.UNDERLINE
-
words for more advanced screen control
reference: p4_dot_underline in ../src/term.c:0608, export CO .UNDERLINE
.UNDERLINE.OFF
-
words for more advanced screen control
reference: p4_dot_underline_off in ../src/term.c:0609, export CO .UNDERLINE.OFF
.INTENSITY
-
words for more advanced screen control
reference: p4_dot_intensity in ../src/term.c:0610, export CO .INTENSITY
.INTENSITY.OFF
-
words for more advanced screen control
reference: p4_dot_intensity_off in ../src/term.c:0611, export CO .INTENSITY.OFF
.BLINKING
-
words for more advanced screen control
reference: p4_dot_blink in ../src/term.c:0612, export CO .BLINKING
.BLINKING.OFF
-
words for more advanced screen control
reference: p4_dot_blink_off in ../src/term.c:0613, export CO .BLINKING.OFF
.REVERSE
-
words for more advanced screen control
reference: p4_dot_reverse in ../src/term.c:0614, export CO .REVERSE
.REVERSE.OFF
-
words for more advanced screen control
reference: p4_dot_reverse_off in ../src/term.c:0615, export CO .REVERSE.OFF
.NORMAL
-
words for more advanced screen control
reference: p4_dot_normal in ../src/term.c:0616, export CO .NORMAL
.BELL
-
ring the bell on the terminal (output the corresponding control)
reference: p4_dot_bell in ../src/term.c:0619, export CO .BELL
K-LEFT
- constant
EKEY code constants for function keys
reference: EKEY_kl in ../src/term.c:0622, export OC K-LEFT
K-RIGHT
- constant
EKEY code constants for function keys
reference: EKEY_kr in ../src/term.c:0623, export OC K-RIGHT
K-UP
- constant
EKEY code constants for function keys
reference: EKEY_ku in ../src/term.c:0624, export OC K-UP
K-DOWN
- constant
EKEY code constants for function keys
reference: EKEY_kd in ../src/term.c:0625, export OC K-DOWN
K-HOME
- constant
EKEY code constants for function keys
reference: EKEY_kh in ../src/term.c:0626, export OC K-HOME
K-END
- constant
EKEY code constants for function keys
reference: EKEY_kH in ../src/term.c:0627, export OC K-END
K-PRIOR
- constant
EKEY code constants for function keys
reference: EKEY_kP in ../src/term.c:0628, export OC K-PRIOR
K-NEXT
- constant
EKEY code constants for function keys
reference: EKEY_kN in ../src/term.c:0629, export OC K-NEXT
K1
- constant
EKEY code constants for function keys
reference: EKEY_k1 in ../src/term.c:0630, export OC K1
K2
- constant
EKEY code constants for function keys
reference: EKEY_k2 in ../src/term.c:0631, export OC K2
K3
- constant
EKEY code constants for function keys
reference: EKEY_k3 in ../src/term.c:0632, export OC K3
K4
- constant
EKEY code constants for function keys
reference: EKEY_k4 in ../src/term.c:0633, export OC K4
K5
- constant
EKEY code constants for function keys
reference: EKEY_k5 in ../src/term.c:0634, export OC K5
K6
- constant
EKEY code constants for function keys
reference: EKEY_k6 in ../src/term.c:0635, export OC K6
K7
- constant
EKEY code constants for function keys
reference: EKEY_k7 in ../src/term.c:0636, export OC K7
K8
- constant
EKEY code constants for function keys
reference: EKEY_k8 in ../src/term.c:0637, export OC K8
K9
- constant
EKEY code constants for function keys
reference: EKEY_k9 in ../src/term.c:0638, export OC K9
K10
- constant
EKEY code constants for function keys
reference: EKEY_k0 in ../src/term.c:0639, export OC K10
S-K1
- constant
EKEY code constants for function keys
reference: EKEY_F1 in ../src/term.c:0640, export OC S-K1
S-K2
- constant
EKEY code constants for function keys
reference: EKEY_F2 in ../src/term.c:0641, export OC S-K2
S-K3
- constant
EKEY code constants for function keys
reference: EKEY_F3 in ../src/term.c:0642, export OC S-K3
S-K4
- constant
EKEY code constants for function keys
reference: EKEY_F4 in ../src/term.c:0643, export OC S-K4
S-K5
- constant
EKEY code constants for function keys
reference: EKEY_F5 in ../src/term.c:0644, export OC S-K5
S-K6
- constant
EKEY code constants for function keys
reference: EKEY_F6 in ../src/term.c:0645, export OC S-K6
S-K7
- constant
EKEY code constants for function keys
reference: EKEY_F7 in ../src/term.c:0646, export OC S-K7
S-K8
- constant
EKEY code constants for function keys
reference: EKEY_F8 in ../src/term.c:0647, export OC S-K8
S-K9
- constant
EKEY code constants for function keys
reference: EKEY_F9 in ../src/term.c:0648, export OC S-K9
S-K10
- constant
EKEY code constants for function keys
reference: EKEY_FA in ../src/term.c:0649, export OC S-K10