tcl.display

Verb: Access/TCL, Releases: AP and AP 6.0

Display line from macro.

Syntax

display message.text {+}

Description

outputs text on the terminal.
May be used in macros and PROCs to display messages to the screen.

If 'message.text' is terminated by a plus sign (+), the trailing carriage return is suppressed.

'message.text' is either regular text, the following special characters, or any combination of them:

@(x{,y})
Positions cursor at the specified 'x,y' coordinates where 'x' indicates the row position and 'y' indicates the column position.

@(-x)
Generates the corresponding video attributes. The values of 'x' are the exactly the same as the values of the Pick/BASIC '@ function'.

@({x}N)
Generates 'x' carriage returns. If 'x' is omitted, only one carriage return is generated.

@({x}B)
Generates 'x' bells. If 'x' is omitted, only one bell is generated.

@(O[n|.x])
Generates one character whose decimal representation is 'n', or hexadecimal representation is 'x', preceded by a period. Valid values are from 0 to 254 decimal (x'00' to x'FE'). Valid on 6.1 and later only.

`command`
The result of the execution of 'command', between back quotes, is substituted in place of 'command'.

Example

display I am `who` !
Displays:
I am 0 joe pa !

display @(-1)@(-13)MAIN MENU@(-14)+
Clears the screen, displays the highlighted text, and suppresses the trailing
form feed.

display Sending DEL: @(O.7F)
Send the the DEL character.

See Also

Command Name Type Description
macros Definition Overview of macros.
tcl.inputwait Verb: Access Waits for input in a macro with a time out.
tcl.type Verb: Access
tcl.prompt Verb: Access Prompts to 'continue' or 'quit' process.
tcl.cls Verb: Access Clears screen.
paragraph.introduction Definition A macro langage allowing simple input and branching

User Comments

What do you think?

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

Login to leave your comments.