Displaying Text

Use TITLE and TEXT to Messages may be written with the TITLE and TEXT commands. The TITLE

display messages. command is the easiest way to write text. TITLE automatically places the pen down and positions text in the title line, located at the top of the display. The following example writes a message. Delimiters ($) mark the beginning and end of the message and must be di￿erent from any characters in the message. For a complete list of valid delimiters, refer to the \Syntax Diagram Elements" table in the introduction to Chapter 7. To erase the title, execute IP or TITLE$$ . Executing CLRDSP does not erase the title line.

The TEXT command places messages (up to 35 characters) anywhere on the display. Use PA to position the pen, then use PD to place the pen down. (TEXT does not work after DWINDOW ON is executed.)

Use escape characters You can enhance any text you write on the screen by using the following

to enhance text. control and escape characters. Place these codes and characters within the label functions, or with any function that de￿nes a string of text between delimiters, such as TITLE, TEXT, KEYDEF, or ACTDEF programming commands. Use the following codes to position the pen, clear or move text, or sound a beep.

 

 

Control Codes

 

 

 

ASCII Code

Function

Description

7

beeper (B L)

Sound beep .

 

 

8back space (B S) Move pen back b y one character width.

12

form feed (F F)

Clear

line

of text, then move pen to left side of

line .

 

 

 

 

 

 

 

13

carriage return (C R)

Move pen

to left side of

displa y, to

beginning

of line .

 

 

 

functions listed

in following

tables.

 

27

escape (EC)

Use

with

 

In the following table, ECY, turns on the display-function mode. When the display-function mode is on, the control codes and characters are displayed in the label; their associated functions (inverse video, underlining, and so on) are not executed, with the exception of carriage return and line feed, which are executed. When the mode is o￿, the code and character functions are executed instead of displayed. The mode is o￿ when a label is created. When

5-16