RISCOS.com

www.riscos.com Technical Support:
BBC BASIC Reference Manual

 


Appendix G - VDU commands


VDU Code Ctrl Extra bytes Meaning
0 @ 0 Does nothing
1 A 1 Sends next character to printer only
2 B 0 Enables printer
3 C 0 Disables printer
4 D 0 Writes text at text cursor
5 E 0 Writes text at graphics cursor
6 F 0 Enables VDU driver
7 G 0 Generates bell sound
8 H 0 Moves cursor back one character (or deletes previous character)
9 I 0 Moves cursor on one space
10 J 0 Moves cursor down one line
11 K 0 Moves cursor up one line
12 L 0 Clears text window
13 M 0 Moves cursor to start of current line
14 N 0 Turns on page mode
15 O 0 Turns off page mode
16 P 0 Clears graphics window
17 Q 1 Defines text colour
18 R 2 Defines graphics colour
19 S 5 Defines logical colour
20 T 0 Restores default logical colours
21 U 0 Disables VDU drivers (or deletes current line)
22 V 1 Selects screen mode
23 W 9 Multi-purpose command
24 X 8 Defines graphics window
25 Y 5 PLOT command
26 Z 0 Restores default windows
27 [ 0 Does nothing
28 \ 4 Defines text window
29 ] 4 Defines graphics origin
30 ^ 0 Homes text cursor
31 _ 2 Moves text cursor

For more details of VDU commands see the chapter entitled VDU Control.

This edition Copyright © 3QD Developments Ltd 2015
Last Edit: Tue,03 Nov 2015