proc.t

Command/PROC, Releases: AP and R83

Terminal addressing and effect function.

Syntax

t {function,function,...}{+}

Description

directs output to the terminal screen and controls special terminal display functions.

Functions:

+ Suppresses carriage return after output.

b Rings terminal 'bell'.

c Clears terminal screen.

(column,row)
Outputs the value at the column and row coordinates.

in Outputs ASCII character with an integer value of 'n'.

xn Outputs ASCII character with integer hexadecimal value of 'n'.

'text' Outputs literal text. Double quotes are required around literal text.

(@function)
The entire complement of '@' functions are available. See '@ function (Pick/BASIC)' for a complete listing.

Example

t (-1),(20,0),'Main Menu'

This command clears the screen, (-1), positions the cursor at column 20, row 0,
and displays the string 'Main Menu'.

t (10,10),(-13),'Chosen',(-14),(-4)

This command positions the cursor to column 10, row 10, displays the string
'Chosen' in reverse video, (-13) and (-14), and clears to the end of
the line, (-4).

s1
ihy
t (0,5),'Is this OK ?'
d1+
t i8,i8
ip?

This set of instructions sets the input buffer pointer to the first position
(s1), places a 'y' in the first input buffer position (ihy), outputs
the string 'Is this OK ?' at column 0, row 5, displays the contents
of the first buffer position and holds the cursor (d1+), outputs two backspaces
(t i8,i8) and prompts for input (ip?). This displays the default value
'y', backs up the cursor two positions so that it is one character in
front of the 'y' and then issues a prompt character, '?',
which places the cursor directly over the 'y'.

t c,i7,(10,10),b

This statements clears the screen (c), rings the bell by issuing a character 7
(i7), positions the cursor at column 10, row 10, and rings the bell again (b).

t x1b,x8,'exec dir',x0

This statement is typically used to control an intelligent DOS terminal (such
as ViaDuct). It sends a 'preamble', consisting of an escape,
backspace (x'1b' and x'8', specified in hex), then it sends
the command string, 'exec dir', followed by the 'end'
command character (x'0'). This statement can be written using
integer references:

t i27,i8,'exec dir',i0

See Also

Command Name Type Description
cursor Definition The thing on the screen that moves when you type.
basic.@.functions Function Special cursor addressing functions.
tcl.term Verb: Access Displays or changes current terminal or printer characteristics.
proc.o Command Output text to crt.
ue.01a6 User Exit Used for cursor control.
proc Definition List of PROC subjects.
tcl.comment Verb: Access Performs cursor control and screen display functions.
ue.0192 User Exit General output formatting capabilities.
ue.5193 User Exit Beeps the terminal.
crt Definition Acronym for 'Cathode Ray Tube'.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.