Skip to Content

Introduction

As with the BBC Micro, the VDU command may be used to send characters to the Z88 Screen Driver. Since the Z88 is very different to the BBC Micro, there are considerable differences in the action of the VDU commands.

In many ways the VDU command is similar to a PRINT CHR$(num) command, but it involves less typing and a number of characters may be easily sent. It is most often used for sending characters that control the action of the Screen Driver.

The VDU statement takes a list of numeric arguments (constants or variables) and sends their least significant bytes as characters to the screen.

A 16 bit value (word) can be sent if the value is followed by a semi-colon. It is sent as a pair of characters, the least significant byte first.

You cannot use the VDU command to send control sequences to a device (:PRT.0, for example).

This section lists and briefly describes the control codes and their function.

CharNumberMeaning
NUL0Null - it does nothing
SOH1Escape character for screen. Preceed special functions. See the ‘Description of Escape Sequences’ sub-section
BEL7Bell - make a short ‘beep’
BS8Move the text cursor backwards one character
HT9Move the text cursor forwards one character
LF10Move the text cursor down one line
VT11Move the text cursor up one line
FF12Clear the text area - identical to CLS
CR13Move the text cursor to the start of the current line
DEL127Black square
Last updated on