Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

(ET)

Mnemonic: (ET)
Hex equivalent: "@0E05@"
Discussion: Enter typewriter mode.

The (ET) control code sets the video display in typewriter mode. Each new line of data written to the screen causes the screen to scroll up one line. The new line of data is written on the bottom line of the screen in background mode.

Transmit marks are automatically placed after the last byte of data written and at the lower right corner of the screen (making the remaining part of the bottom line the foreground data entry field).

The cursor is placed at the left-most position of the foreground field on the bottom line.

The alternative to typewriter mode is normal mode.

Example:
a. 100 FORMAT (ET)
   .
   PRINT (0,100)
   PRINT (0) "ENTER CUSTOMER NUMBER:"
   INPUT (0) CUSTNUM$

b. PRINT (0) (ET)
   PRINT (0) "ENTER CUSTOMER NUMBER:"
   INPUT (0) CUSTNUM$
In this example, the screen is placed into typewriter mode. Then a prompt is displayed and data is accepted into the variable named CUSTNUM$. Items such as foreground, background and transmit marks are handled automatically.