A statement which takes a list of numeric arguments and sends their least-significant bytes as characters to the current output stream.

A 16-bit value can be sent if the value is followed by a ';'. It is sent as a pair of characters, least significant byte first.

VDU 8,8 :REM cursor left two places.
VDU &0A0D;&0A0D; :REM CRLF twice

The bytes sent using the VDU statement do not contribute to the value of COUNT, but may well change POS and VPOS.

You can use VDU to send characters direct to the current output stream without having to use a PRINT statement. It offers a convenient way of sending a number of control characters to the console.

BBC Micro VDU Emulation

All the console output is passed to a software emulation of the BBC Micro's VDU driver. The VDU codes then perform a function as similar as possible to those of the BBC Micro. The function of the various VDU codes when using the default output stream are described in the VDU Emulator section.


VDU <numeric>{,|;<numeric>}[;]

Associated Keywords