Home » Archimedes archive » Acorn User » AU 1998-05 B.adf » PRMs » VDU

VDU

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1998-05 B.adf » PRMs
Filename: VDU
Read OK:
File size: 7428 bytes
Load address: 0000
Exec address: 0000
File contents
HELP(�����,����$DIR$��H������*q!Root�H���Ne[L17�H���uc[�17a�
H����a[�18HH����`[�18aH���3^[�19�H���F\[u19a H������228H���Q�	22a�H����!E!�23tH���
�[�23,0< H����G[�23,1,!H����\�23,17�!H���Q?[s23,17,0p#H���H<[�23,17,4p$H����9[�23,17,64%H����>!	23,17,7@&H���'�9!�23,2<(H����s�&+23,6h)H���R�D!�23a@,H���9�6!�24-H����1\�25�-H���c\�28H.H����[�29/H���@-!m31t1H����[a23,32-255�2H����k14�4H����315>145H����E!�0�6H����3!�18H���6�-!710H9H���
�-!411|:H���O�=!�12l;H���u�=!�13l<H���o�+!�127�=H���f��'�16�>H����C!(2BH�����=!20CH���%!k21|EH���B9223,10�FH�����:!�23,11`GH�����9!�23,12,IH�����,!23,16<MH����)!�23,7PH���XE=!:23,8PSH���<.23,9�TH���*8!"26�UH���C�!R27�UH���}�!�3�VH����'<!�ECF_Default�\H���ޕ@!/Scroll_Protection�`H���MM7!�30�bH������&X4fH���b5@!5$jH�����!�6�jH����D>!�7�kH����`,!�8<mH����:-!�9oH���E�+'aboutDATAqVDU codes
#Parent StrongHelp:!Menu
0	<Null Operation=>0>				 		16	<Clear graphics window=>16>
1	<Send next char to printer=>1>			 		17	<Set text colour=>17>
2	<Enable printer=>2>				 		18	<Set graphics colour and action=>18>
3	<Disable printer=>3>				 		19	<Set palette=>19>
4	<Split text,graphics cursors=>4>		 		20	<Restore default colours=>20>
5	<Join text,graphics cursors=>5>			 		21	<Disable screen output=>21>
6	<Enable screen output=>6>			 		22	<Change Screen Mode=>22>
7	<Bell=>7>					 		23	<Misc=>23>
8	<Back space=>8>					(move left)	24	<Define graphics window=>24>
9	<Horizontal tab=>9>				(move right)   	25	<Plot=>25>
10	<Line feed=>10>					(move down)	26	<Restore default windows=>26>
11	<Vertical tab=>11>				(move up)	27	<Null Operation=>27>
12	<Form feed/clear screen=>12>			 		28	<Define text window=>28>
13	<Carriage return=>13>				 		29	<Set graphics origin=>29>
14	<Page mode on=>14>				 		30	<Home=>30>
15	<Page mode off=>14>				 		31	<Position text cursor=>31>
127	<Delete=>127>

#Tab
See also:
   	<OS_ReadVDUVariables=>OS:OS_ReadVDUVariables>	 		 	<Scroll protection=>Scroll_Protection>
	<Output stream status=>OS:OS_Byte003>		 		 	<VDU status=>OS:OS_Byte117>
	<Unknown VDU23 vector=>OS:vector_ukvdu23v>	 		 	<Unknown plot vector=>OS:vector_ukplotv>
	<VDU extension vector=>OS:vector_vduxv>
#Indent;Line;align centre
{/}<VDU commands manual=>about>, v2.00{/}
DATALVDU 17
#Parent !Root
#Wrap Off
Set text colour:
VDU 17,<colour=>17a>DATA�Colour
#Parent 17
0-127 :	Foreground colour set.
128-255 :	Background colour set to colour-128.

colour used = colour AND maxcol.

maxcol is 1,3,15 or 63 for 256-colour modes.DATA�VDU 18
#Parent !Root
VDU 18,<action=>18a>,<colour=>17a>
This VDU is used to define graphics fore or background colour, and the way in which it is to be plotted on the screen.DATA�Action:
#Parent 18
s is pixel on screen.
c is new colour.

Value  Action
#Line
0	s = c
1	s = s OR c
2	s = s AND c
3	s = s XOR c
4	s = NOT s
5
6	s = s AND NOT c
7	s = s OR NOT c
8-15	As 0-7 but background col is transparent.
16-31	Colour pattern 1, using action 0-15
32-47	Colour pattern 2, using action 0-15
48-63	Colour pattern 3, using action 0-15
64-79	Colour pattern 4, using action 0-15
80-95	Giant pattern, using action 0-15DATA�VDU 19
#Parent !Root
#Wrap Off
VDU 19,colour,<mode=>19a>,r,g,b
#Wrap On
This VDU defines the RGB value for the border, or one of the screen or pointer colours.DATAuMode:
#Parent !Root
Mode	Action
#Line
0-15	logical col = actual col
16	logical colour = RGB
17	first flash = RGB
18	second flash = RGB
24	Border colour = RGB
25	Pointer col = RGB

Add 128 to set supremacy bit.

Only top four bits of R,G and B, is used today, but if you want the colours to look the same on a future 24-bit VIDC, you should set bottom bits=top bits.DATAVDU 22
#Parent !Root
VDU 22,<mode=>22a>
This VDU is used to select screen mode.

To read which mode is currently set, use <OS_Byte 135=>OS:OS_Byte135>.
To read other info, use <OS_ReadModeVariable=>OS:OS_ReadModeVariable> or <OS_ReadVduVariables=>OS:OS_ReadVduVariables>.
DATA�	Standard Modes:
#Parent 22
#F3=Corpus.Medium 12
#Tab Align Right, Align Right, Align Right, Align Right, Align Right, Align Left
Mode	col � row	pixx � pixy	colours	Memory	Type
#Line
# Hmm. For some reason StrongHelp was *not* displaying more than one * in f3
# Leaning toothpick syndrome cures this :-)
0	80�32		640�256		2	20K	{f3}\*\*\*\*-{f}
1	40�32		320�256		4	20K	{f3}\*\*\*\*-{f}
2	20�32		160�256		16	40K	{f3}\*\*\*\*-{f}
3	80�25		Text only	2	40K	{f3}\*\*\*\*-{f}
4	40�32		320�256		2	20K	{f3}\*\*\*\*-{f}
5	20�32		160�256		4	20K	{f3}\*\*\*\*-{f}
6	40�25		Text only	2	20K	{f3}\*\*\*\*-{f}
7	40�25		Teletext	16	80K	{f3}\*\*\*\*-{f}
8	80�32		640�256		4	40K	{f3}\*\*\*\*-{f}
9	40�32		320�256		16	40K	{f3}\*\*\*\*-{f}
10	20�32		160�256		256	80K	{f3}\*\*\*\*-{f}
11	80�25		640�250		4	40K	{f3}\*\*\*\*-{f}
12	80�32		640�256		16	80K	{f3}\*\*\*\*-{f}
13	40�32		320�256		256	80K	{f3}\*\*\*\*-{f}
14	80�25		640�250		16	80K	{f3}\*\*\*\*-{f}
15	80�32		640�256		256	160K	{f3}\*\*\*\*-{f}
16	132�32		1056�256	16	132K	{f3}\*\*---{f}
17	132�25		1056�250	16	132K	{f3}\*\*---{f}
18	80�64		640�512		2	40K	{f3}-\*---{f}
19	80�64		640�512		4	80K	{f3}-\*---{f}
20	80�64		640�512		16	160K	{f3}-\*---{f}
21	80�64		640�512		256	320K	{f3}-\*---{f}
22	66�36		768�288		16	108K	{f3}\*\*---{f}
23	144�56		1152�896	2	126K	{f3}----\*{f}
24	132�25		1056�256	256	264K	{f3}\*\*---{f}
25	80�50		640�480		2	37.5K	{f3}-\*\*\*-{f}
26	80�50		640�480		4	75K	{f3}-\*\*\*-{f}
27	80�50		640�480		16	150K	{f3}-\*\*\*-{f}
28	80�50		640�480		256	300K	{f3}-\*\*\*-{f}
29	100�75		800�600		2	58.6K	{f3}-\*-\*-{f}
30	100�75		800�600		4	117.2K	{f3}-\*-\*-{f}
31	100�75		800�600		16	234.4K	{f3}-\*-\*-{f}
32	
33	96�36		768�288		2	27K	{f3}\*\*---{f}
34	96�36		768�288		4	54K	{f3}\*\*---{f}
35	96�36		768�288		16	108K	{f3}\*\*---{f}
36	96�36		768�288		256	216K	{f3}\*\*---{f}
37	112�44		896�352		2	38.5K	{f3}-\*---{f}
38	112�44		896�352		4	77K	{f3}-\*---{f}
39	112�44		896�352		16	154K	{f3}-\*---{f}
40	112�44		896�352		256	308K	{f3}-\*---{f}
41	80�44		640�352		2	27.5K	{f3}-\*\*\*-{f}
42	80�44		640�352		4	55K	{f3}-\*\*\*-{f}
43	80�44		640�352		16	110K	{f3}-\*\*\*-{f}
44	80�25		640�200		2	15.7K	{f3}-\*\*\*-{f}
45	80�25		640�200		4	31.3K	{f3}-\*\*\*-{f}
46	80�25		640�200		16	62.5K	{f3}-\*\*\*-{f}
#Align Right
{f3}|||||{f}
'TV'-type monitor {f3}+||||{f}
Multisync monitor {f3}-+|||{f}
60 Hz VGA-type monitor {f3}--+||{f}
Super-VGA monitor {f3}---+|{f}
61.2 kHz high-res monochrome monitor {f3}----+{f}

#Align
DATA�VDU 23
#Parent !Root
VDU 23,<command=>23a>,nine parameters
Miscellaneous commands.
Though few of the commands use all of the nine parameters, they must always be present. In BASIC, you can use | to add eight zero bytes:

#tab Align right
VDU	23,0,10 |
=VDU	23,0,10,0,0,0,0,0,0,0,0

Any extra zero bytes remaining after the 9 bytes used by the VDU 23 command are ignored (<VDU 0=>0> is a no-op).
DATA�VDU 23,0
#Parent 23
VDU 23,0,action,mode,0,0,0,0,0,0
Set the interlace and control cursor appearance.

Action = 8	Set interlace:
	 	Mode :	0	Set it to opposite of current *TV
	 	 	1	Set it to current *TV
	 	 	&80	Turn interlace off
	 	 	&81	Turn interlace on

Action = 10	Set start line for cursor:
	 	Mode :	b0-4	Start line (0 is top)
	 	 	b5-6	00 Steady
	 	 	01 Off
	 	 	02 Fast flash
	 	 	03 Slow flash

Action = 11	End line for cursor = Mode
DATA�VDU 23,1
#Parent 23
VDU 23,1,mode,0,0,0,0,0,0,0

This VDU controls the appearance of the cursor:
  0 Hide cursor
  1 Show cursor
  2 Steady cursor
  3 Flashing corsor

The effect of this VDU is cancelled when cursor editing occurs.DATA�VDU 23,17,x
#Parent 23
0-3	<Set tint=>23,17,0>
4	<Choose colour-pattern type=>23,17,4>
5	Swap text foreground and background colour
6	<Set ECF origin=>23,17,6>
7	<Set char size and spacing=>23,17,7>
DATAsVDU 23,17,0-3
#Parent 23,17
This VDU is used to set the tint for a colour in a 256-colour mode:

#Wrap Off
VDU 23,17,0,tint,0,0,0,0,0,0,0	Text foreground
VDU 23,17,1,tint,0,0,0,0,0,0,0	Text background
VDU 23,17,2,tint,0,0,0,0,0,0,0	Graphics foreground
VDU 23,17,3,tint,0,0,0,0,0,0,0	Graphics background
#Wrap On

Tint is &00,&40,&80 or &C0 (uses only 2 top bits).DATA�VDU 23,17,4
#Parent 23,17
#Wrap Off
VDU 23,17,4,0,0,0,0,0,0,0 :	Use ancient pattern
VDU 23,17,4,1,0,0,0,0,0,0 :	Use new & improved

#Wrap On
This VDU chooses which set of colour patterns are used to interpret subsequent <VDU 23,2-5=>23,2> calls.DATA�VDU 23,17,6
#Parent 23,17
23,17,6,x;y;0,0,0

This VDU sets the point with which to align the bottom left of the ECF pattern with.

You can also use <OS_SetECFOrigin=>OS:OS_SetECFOrigin>.
DATA	VDU 23,17,7
#Parent 23,17
VDU 23,17,7,flags,x;y;

Bit	Meaning if set
#Line
0	(unimplemented - was to set <VDU 4=>4> character size)
1	Set size of <VDU 5=>5> characters. (sizes 8�8 and 8�16 are fast, others slow)
2	Set spacing between <VDU 5=>5> characters.
DATA�VDU 23,2-5
#Parent 23a
VDU 23,{/}nr{/},eight colour bytes.

This VDU defines one of the ECF patterns; {/}nr{/} is 2-5 for pattern 1-4.
Each of the eight colour bytes define one row of the ECF pattern, and there are two modes: a BBC-mode, and an Archimedes mode. 
To choose mode, use <VDU 23,17,4=>23,17,4>.

Bit 0-7 in each colour byte,is used as follows:

BPP	BBC pixels	Archimedes pixels
#Line
1	7,6,5,4,3,2,1,0	0,1,2,3,4,5,6,7
2	73,62,51,40	10,32,54,76
4	7531,6420	3210,7654
8	76543210	76543210
DATA+VDU 23,6
#Parent 23
VDU 23,6, 8 pattern bytes

This VDU sets the dot-dash line style used by dotted <plot=>OS:OS_Plot> commands. The most significant bit is used first; the default is &AAAAAAAA. The length of the dash pattern used is set with <OS_Byte 163=>OS:OS_Byte163>, the default is 8.
DATA�VDU 23 commands:
#Parent !Root
0		<Set interlace & cursor appearance=>23,0>
1		<Control cursor appearance=>23,1>
2-5		<Define ECF pattern & colours=>23,2>
6		<Set dot-dash line style=>23,6>
7		<Scroll text window or screen=>23,7>
8		<Clear block of text window=>23,8>
9		<Set time for 1st flash colour=>23,9>
10		<Set time for 2nd flash colour=>23,10>
11		<Set default pattern=>23,11>
12-15		<Define simple ECF & colours=>23,12>
16		<Control cursor movement after print=>23,16>
17		<Miscellaneous operations=>23,17>
18-25,28-31	<Unknown VDU23 vector called=>OS:vector_ukvdu23v>
32-255		<Redefine a character=>23,32-255>

#Wrap
The current settings defined by 2-6 and 32-255 can be read with <OS_Word 10=>OS:OS_Word10>.
DATA�VDU 24
#Parent !Root
{ALIGN RIGHT}(rx,ty){ALIGN CENTRE}

  Define graphics window:  
  VDU 24,lx;by;rx;ty;

  Coordinates are relative to the current graphics origin and *inclusive*.

{ALIGN LEFT}(lx,by)
DATA�VDU 25
#Parent !Root
VDU 25,<command=>OS:OS_PlotIndex>,x;y;
This VDU executes a plot command. It is faster (and simpler) to use the SWI <OS_Plot=>OS:OS_Plot> directly.
DATA�VDU 28
#Parent !Root
{Align right}(rx,ty){align centre}

  Define text window:  
  VDU 28,lx,by,rx,ty

{align left}(lx,by)
DATA�VDU 29
#Parent !Root
VDU 29,x;y;
This VDU defines where on screen 0,0 is. All graphics operations are relative to this point. Graphics window remains at same position on screen.DATAmVDU 31
#Parent !Root
VDU 31,{/}x{/},{/}y{/}
This VDU moves the text cursor to ({/}x{/},{/}y{/}). (0,0) is top left of current text window. If ({/}x{/},{/}y{/}) is outside text window, nothing happens, unless <scroll protection=>Scroll_Protection> is enabled and {/}x{/} = maxx+1  => cursor is moved to ({/}x{/}-1,{/}y{/}), and a pending newline is generated.

In <VDU 5=>5> mode the graphics cursor is moved to (x char spacing * {/}x{/}, y char spacing * {/}y{/}), which can result in the cursor being moved outside the graphics window.

Current text cursor position can be read with <OS_Byte 134=>OS:OS_Byte134>
DATAaVDU 23,32-255
#Parent 23
VDU 23,{/}m{/}, 8 bytes of row definitions

This VDU redefines character /m/ in the system font. The rows are given by the 8 bytes from top to bottom. The pattern for a character can be read with <OS_Word 10=>OS:OS_Word10>.

Note that although the delete character (\<127>) can be redefined, it still cannot be printed.
DATAVDU 14 / VDU 15
#Parent !Root
VDU 14
This VDU turns page mode on.

VDU 15
This VDU turns page mode off.

When page mode is turned on the VDU drivers will not scroll the screen until Shift is pressed. When shift is released the VDU drivers will scroll approximately 75% of the number of lines in the current window before waiting again. <OS_Byte 117=>OS:OS_Byte117> is used to determine whether paged mode is enabled, and the line count before scrolling is stopped can be read and set with <OS_Byte 217=>OS:OS_Byte217>.
DATA# redirectionDATA�VDU 0
#Parent !Root
VDU 0 does nothing.

This allows BASIC's {fCode}|{f} to act as if it supplies the exact number of zero bytes to fill the remaining parameters of complex VDU commands ({/}e.g.{/} <VDU 23=>23>) - what actually happens is that {fCode}|{f} always supplies 8 zero bytes and any left over after the complex command are each treated as VDU 0 commands, and hence ignored.
DATA�VDU 1
#Parent !Root
VDU 1,{/}n{/}

VDU 1 sends the next byte to the printer stream only, provided that the printer stream has been enabled with <VDU 2=>2>. (Otherwise the next byte is ignored)

VDU 1 allows the printer ignore character (set with <OS_Byte 6=>OS:OS_Byte006>) and other characters not usually passed on by the VDU drivers to be sent to the printer via the VDU drivers.
DATA7VDU 10
#Parent !Root
VDU 10 moves the cursor down one line

In <VDU 4=>4> mode this is the text cursor, in <VDU 5=>5> mode the graphics cursor. Motion is to positive Y (default is down, set by <VDU 23,16=>23,16>). If at the last line the screen is scrolled if scrolling is enabled (see also VDU 23,16).
DATA4VDU 11
#Parent !Root
VDU 11 moves the cursor up one line

In <VDU 4=>4> mode this is the text cursor, in <VDU 5=>5> mode the graphics cursor. Motion is to negative Y (default is up, set by <VDU 23,16=>23,16>). If at the first line the screen is scrolled if scrolling is enabled (see also VDU 23,16).
DATA�VDU 12
#Parent !Root
VDU 12 clears the current window

In <VDU 4=>4> mode this is the text window to the text background colour, in <VDU 5=>5> mode the graphics window to the graphics background colour. The cursor is <homed=>30>.
DATA�VDU 13
#Parent !Root
VDU 13 moves the cursor to the start of the current line

In <VDU 4=>4> mode this is the text cursor, in <VDU 5=>5> mode the graphics cursor. Motion is to negative X (default is left, set by <VDU 23,16=>23,16>) at constant Y.
DATA�VDU 127
#Parent !Root
VDU 127 deletes the previous character.

Unless <VDU 23,16=>23,16> specifies no cursor motion after printing the cursor is moved back as if by <VDU 8=>8>. In <VDU 5=>5> mode the character position is solid filled with graphics background colour, in <VDU 4=>4> mode with text background colour ({/}i.e.{/} a space is printed, even if character 32 has been redefined).
DATA�VDU 16
#Parent !Root
VDU 16 clears the graphics window

The window is cleared to the graphics background colour using the background action. The graphics cursor position is unaffected. This is equivilent to BASIC's CLG.
DATA(VDU 2
#Parent !Root
VDU 2 enables the printer stream - characters in the range 8-13, 32-126 and 128-255 sent to the VDU drivers will also be sent to the printer device selected by <OS_Byte 5=>OS:OS_Byte005>. Multibyte VDU sequences are not sent to the printer (except for the argument of<VDU 1=>1>), and bytes are still sent to the printer stream when screen output is disabled with <VDU 21=>21>.

<VDU 3=>3> disables the printer stream, and <OS_Byte 117=>OS:OS_Byte117> can be used to read whether the printer stream is enabled.

<OS_Byte 3=>OS:OS_Byte003> can be used to disable the printer stream independently of VDU 2 and <3> - in the <output stream status=>OS:OS_Byte003state> bit 2 overrides VDU 2, and bit 6 must be clear for anything other than <VDU 1=>1> to send characters to the printer.
DATAVDU 20
#Parent !Root
VDU 20 restores the palette for the current mode.

The text and graphics foreground is white, background black. Graphics foreground and background actions are 0 (overwrite). In 256 colour modes foreground tint is &C0, background 0.
DATAkVDU 21
#Parent !Root
VDU 21 disables screen output. It is reversed with <VDU 6=>6>, and the state can be read with <OS_Byte 117=>OS:OS_Byte117>.

Characters are still sent to the printer (if it has been enabled with <VDU 2=>2>) and any other ouput devices enabled with <OS_Byte 3=>OS:OS_Byte003>. Multibyte VDU sequences are still passed as usual (but then ignored if they affect the screen) - hence sending {fCode}22{f}, {fCode}6{f} while the screen ouput is disabled will neither change the mode (<VDU 22=>22>) nor enable screen output (the {fCode}6{f} byte is parsed as the parameter to the ignored VDU 22).
DATA2VDU 23,10
#Parent 23a
VDU 23,10,duration,0,0,0,0,0,0,0

This VDU sets the duration of the second flash colour (in video frames), and is equivalent to <OS_Byte 10=>OS:OS_Byte010>. The duration can be read with <OS_Byte 194=>OS:OS_Byte194>. A duration of 0 means display the first colour constantly.
DATA�VDU 23,11
#Parent 23a
VDU 23,11,0,0,0,0,0,0,0,0

This VDU sets Master 128 compatible pattern mode, and resets the colour patterns to the <mode defaults=>ecf_default>.
DATA�VDU 23,12-15
#Parent 23a
VDU 23,{/}nr{/},{/}n1{/},{/}n2{/},{/}n3{/},{/}n4{/},{/}n5{/},{/}n6{/},{/}n7{/},{/}n8{/}

This VDU defines one of the ECF patterns; {/}nr{/} is 12-15 for pattern 1-4.

For 2,4 and 16 colour modes this defines the patterns as a repeated 2 � 4 block of pixels with the given logical colours:

	{/}n1{/}	{/}n2{/}
	{/}n3{/}	{/}n4{/}
	{/}n5{/}	{/}n6{/}
	{/}n7{/}	{/}n8{/}

In 256 colour modes the parameters define the eight rows.
DATAVDU 23,16
#Parent 23a
VDU 23,16,{/}x{/},{/}y{/},0,0,0,0,0,0

This VDU controls the movement of the cursor after printing. The value of the control byte is altered by

  new value = (old value AND {/}y{/}) EOR {/}x{/}

The bits in the value are interpreted as follows

bit	effect when set
#Line
7	undefined (normal is unset)
6	in <VDU 5=>5> mode cursor movement beyond the window edge does not generate newlines
5	cursor does not move after characters are printed (normal action is to move in positive X direction)
4	cursor movement in Y direction out of window results in cursor being "wrapped round" to opposite side (normal action in <VDU 4=>4> mode is to scroll, <VDU 5=>5> to wrap)
3	X direction is vertical, Y is horizontal (normal is Y vertical)
2	Positive vertical direction is down (normal is up)
1	Positive horizontal direction is right (normal is left)
0	<scroll protection=>Scroll_Protection> enabled (normal is disabled, but desktop sets bit 0 and {*}enables scroll protection{*})
# Much tears before bedtime, that one.
DATA�VDU 23,7
#Parent 23a
VDU 23,7,extent,<direction=>.direction>,movement,0,0,0,0,0

This VDU scrolls the current text window or whole screen:

extent	effect
#Line
0	scroll text window
1	scroll whole screen
#tab

movement	effect
#line
0		scroll by one character cell
1		scroll by one character cell vertically, <one byte=>.byte> horizontally
#Subpage byte
VDU 23,7 1 byte horizontal motion
Number of colours	Pixels moved
#Line
2			8
4			4
16			2
256			1
# and for the other 2?
#Subpage direction
VDU 23,7 directions
value	scroll direction
#Line
0	right
1	left
2	down
3	up
4	positive X direction
5	negative X direction
6	positive Y direction
7	negative Y direction

X and Y directions are controlled with <VDU 23,16=>23,16>.
DATA:VDU 23,8
#Parent 23a
VDU 23,8,base_start,base_end,{/}x1{/},{/}y1{/},{/}x2{/},{/}y2{/},0,0

This VDU clears a block of the text window to the text background colour. The block is defined in terms of offsets {/}x1{/},{/}y1{/} and {/}x2{/},{/}y2{/} given from base positions:

#Wrap off
Value	Meaning			Value	Meaning			Value	Meaning
#Line
0	window top left		1	cursor column top	2	window off top right
4	cursor line left	5	cursor postion		6	cursor line off right
8	window bottom left	9	cursor column bottom	10	window off bottom right
#wrap

(where "off" is one char beyond in the positive X direction)

(see <VDU 23,16=>23,16> to change X and Y directions, and sense of positive)

The result is undefined if and base + offset is outside the range -128,127. If the end point lies before the start point no clearing occurs.
DATA.VDU 23,9
#Parent 23a
VDU 23,9,duration,0,0,0,0,0,0,0

This VDU sets the duration of the first flash colour (in video frames), and is equivalent to <OS_Byte 9=>OS:OS_Byte009>. The duration can be read with <OS_Byte 195=>OS:OS_Byte195>. A duration of 0 means display the first colour constantly.
DATA"VDU 26
#Parent !Root
VDU 26 restores the default windows.

The text and graphics windows both return to default (full screen), the graphics origin is reset to 0,0, the graphics cursor moved to 0,0 and the text cursor <homed=>30>. Hardware scrolling of the text window is initiated.
DATARVDU 27
#Parent !Root
VDU 27 does nothing.
# See also unary + in perl. :-)
DATA�VDU 3
#Parent !Root
VDU 3 disables the printer stream.

<VDU 2=>2> is used to enable the printer stream, and <OS_Byte 117=>OS:OS_Byte117> can be used to read whether the printer stream is enabled.
DATA�ECF pattern defaults
#Parent 23,11
Mode 0:

1 Red Orange		2 Orange		3 Yel-Orange		4 Cream
{fCode}11001100{f}	{fCode}11110000{f}	{fCode}11111111{f}	{fCode}00000011{f}
{fCode}00000000{f}	{fCode}00001111{f}	{fCode}00110011{f}	{fCode}00001100{f}
{fCode}11001100{f}	{fCode}11110000{f}	{fCode}11111111{f}	{fCode}00000011{f}
{fCode}00000000{f}	{fCode}00110011{f}	{fCode}01010101{f}	{fCode}10001000{f}

Other 2 colour modes:

1 Dark Grey		2 Grey			3 Light Grey		4 Hatching
{fCode}10101010{f}	{fCode}11001100{f}	{fCode}11111111{f}	{fCode}00010001{f}
{fCode}00000000{f}	{fCode}00110011{f}	{fCode}01010101{f}	{fCode}00100010{f}
{fCode}10101010{f}	{fCode}11001100{f}	{fCode}11111111{f}	{fCode}01000100{f}
{fCode}00000000{f}	{fCode}00110011{f}	{fCode}01010101{f}	{fCode}10001000{f}

4 colour modes:

1 Red Orange	2 Orange	3 Yel-Orange	4 Cream
{fCode}2121{f}	{fCode}2121{f}	{fCode}2222{f}	{fCode}2323{f}
{fCode}1111{f}	{fCode}1212{f}	{fCode}1212{f}	{fCode}3232{f}

16 colour modes:

1 Orange	2 Pink 		3 Yel-Green	4 Cream
{fCode}21{f}	{fCode}61{f}	{fCode}32{f}	{fCode}37{f}
{fCode}12{f}	{fCode}16{f}	{fCode}23{f}	{fCode}73{f}

256 colour modes:

#tab
1 Grey		 		2 Slate 	 		3 Green		 		4 Pink		 
{fCode}3F{f}	{fCode}00{f}	{fCode}0{f}	{fCode}C0{f}	{fCode}4{f}	{fCode}C0{f}	{fCode}3B{f}	{fCode}C0{f}
		{fCode}40{f}	 		{fCode}80{f}	 		{fCode}80{f}	 		{fCode}40{f}
		{fCode}80{f}	 		{fCode}40{f}	 		{fCode}40{f}	 		{fCode}80{f}
		{fCode}C0{f}	 		{fCode}00{f}	 		{fCode}00{f}	 		{fCode}C0{f}

Repeat rows shown 2 or 4 times as necessary.
DATA/Scroll protection
#Parent 23,16
Normally in <VDU 4=>4> mode, printing a character at the end of the line immediately moves the cursor to the negative edge of the text window and down one line in the positive X direction.

With scroll protection enabled this cursor movement is deferred - a "pending newline" is generated, which is only executed just before the next character is printed, *providing* that it has not been deleted by an intervening VDU command. For example, <VDU 127=>127> received during pending newline would cause the pending newline to be deleted, whereas <VDU 9=>9> would execute it.

The upshot of being unaware of the state of scroll protection is that the cursor isn't always on the line that you expect it to be on, which can play havoc with some cursor movement commands ({/}e.g.{/} <carriage return=>13>).

Scroll protection is enabled/disabled with <VDU 23,16=>23,16> - there is no way to read the current state.
# Silly omission

Note: The default state of scroll protection is off, but the desktop turns it *on* as soon as it is run.
DATA�VDU 30
#Parent !Root
VDU 30 moves the cursor to its home position.

The home position is usually the top left of the window, but this may be altered with <VDU 23,16=>23,16>.

In <VDU 4=>4> mode the text cursor is homed, in <VDU 5=>5> mode the graphics cursor. The actual location of the graphics mode home position may be up to (char size - 1) pixels out from the corner in one or both axes depending on the direction of character printing.
DATAXVDU 4
#Parent !Root
VDU 4 splits the text and graphics cursors. This is known as VDU 4 mode, and is the default VDU driver state.

The text and graphics cursors are joined with <VDU 5=>5>.

In VDU 4 mode text is printed at the current text cursor position with the current text foreground and background colours. By default, after each character is plotted the text cursor is moved in the positive X direction (default right), moving to the left of a new row when the right side of the text window is reached, scrolling when the "bottom" is reached. All of this can be altered with <VDU 23,16=>23,16>. The text cursor is normally displayed (unless it is disabled with <VDU 23,1=>23,1>.)

<OS_Byte 117=>OS:OS_Byte117> can be used to find out whether the cursors are split or joined.

VDU 4 mode is faster than VDU 5 mode, and allows cursor editing.
DATAVDU 5
#Parent !Root
VDU 5 joins the text and graphics cursors. This is known as VDU 5 mode.

The text and graphics cursors are split with <VDU 4=>4>. VDU 4 mode is the default VDU driver state.

In VDU 5 mode text is printed at the current graphics cursor position with the current graphics foreground colour and action - background pixels in the character shape are not plotted. By default, after each character is plotted the graphics cursor is moved in the positive X direction (default right), moving to the left of a new row when the right side of the graphics window is reached, the cursor wrapping to the diagonally opposite (default top left) corner when the "bottom" is reached. All of this can be altered with <VDU 23,16=>23,16>. Text position is not restricted to character cell positions, and text size and spacing can be altered with <VDU 23,17,7=>23,17,7>.

<OS_Byte 117=>OS:OS_Byte117> can be used to find out whether the cursors are split or joined.

VDU 5 mode is slower than VDU 4 mode, and does not allow cursor editing.
DATA�VDU 6
#Parent !Root
VDU 6 enables screen output, reversing the effect of <VDU 21=>21>. <OS_Byte 117=>OS:OS_Byte117> can be used to read whether screen output is disabled.
DATA�VDU 7
#Parent !Root
VDU 7 sounds the bell

Bell sound parameters are set with OS_Byte <211=>OS:OS_Byte211>, <212=>OS:OS_Byte212>, <213=>OS:OS_Byte213> and <214=>OS:OS_Byte214>.
DATA�VDU 8
#Parent !Root
VDU 8 backspaces the cursor

In <VDU 4=>4> mode this is the text cursor, in <VDU 5=>5> mode the graphics cursor. Backspace moves to negative X (default is left, set by <VDU 23,16=>23,16>). If at the start of a row (column with <vertical printing=>23,16>) it moves to the end of the previous row (or column) scrolling the screen where necessary.

Backspace does not delete the previous character.
DATA�VDU 9
#Parent !Root
VDU 9 advances the cursor

In <VDU 4=>4> mode this is the text cursor, in <VDU 5=>5> mode the graphics cursor. Motion is to positive X (default is right, set by <VDU 23,16=>23,16>). If at the end of a row (column with <vertical printing=>23,16>) it moves to the end of the next row (or column) scrolling the screen <where necessary=>Scroll_Protection>.

The cursor is advanced 1 character width, not to the next tab column.
DATA'VDU commands manual
#Align Centre
{fh3}VDU commands manual{f}
#Line
#Align Left
This manual is part of a collection comprising the main public domain programming reference. The other manuals in the series are :
#Indent 2
#Postfix :!Root
<OS>		The base operating system stuff
<Wimp>		The desktop part of the operating system
<InetSWIs>	Internet based SWIs
<InetSocket>	Internet socket calls
<MiscSWIs>	Miscellaneous SWIs
<VDU>		VDU commands
<Toolbox>	Toolbox (by Niel Bingham)
#Indent

For comments, suggestions and submissions for these, please mail Justin Fletcher <\<gerph@innocent.com\>=>#URL mailto:gerph@innocent.com> who is currently moderating the collection. The primary location for these manuals will be <http://freenet.barnet.ac.uk/manuals/=>#URL http://freenet.barnet.ac.uk/manuals/>.

Click <here=>.hist200> for some history.
#Subpage hist100
VDU History v1.00
�	Original version by Guttorm Vik (many thanks!)

<Next=>.hist200>
#Subpage hist200
VDU History v2.00
#align right
{/}22 Mar 1998{/}
�	Submissions from various people added.
�	Changes to the formatting and links - now links via description rather than number, giving a bigger area to 'hit'
�	Nick Clark's done everything.
�	That's all folks, I can't imagine much more will happen with the VDU manual !

#Tab
<Previous history=>.hist100>
00000000  48 45 4c 50 28 00 00 00  fd 00 00 00 ff ff ff ff  |HELP(...........|
00000010  2c 00 00 00 00 fd ff ff  00 00 00 00 e4 06 00 00  |,...............|
00000020  00 01 00 00 00 00 00 00  24 00 00 00 44 49 52 24  |........$...DIR$|
00000030  ec 06 00 00 ec 06 00 00  18 07 00 00 48 fd ff ff  |............H...|
00000040  fe a6 95 2a 71 05 00 00  13 00 00 00 00 00 00 00  |...*q...........|
00000050  21 52 6f 6f 74 00 00 00  8c 0c 00 00 48 fd ff ff  |!Root.......H...|
00000060  4e 65 5b 1b 4c 00 00 00  13 00 00 00 00 00 00 00  |Ne[.L...........|
00000070  31 37 00 00 d8 0c 00 00  48 fd ff ff 75 63 5b 1b  |17......H...uc[.|
00000080  b7 00 00 00 13 00 00 00  00 00 00 00 31 37 61 00  |............17a.|
00000090  90 0d 00 00 48 fd ff ff  90 61 5b 1b b6 00 00 00  |....H....a[.....|
000000a0  13 00 00 00 00 00 00 00  31 38 00 00 48 0e 00 00  |........18..H...|
000000b0  48 fd ff ff db 60 5b 1b  b6 01 00 00 13 00 00 00  |H....`[.........|
000000c0  00 00 00 00 31 38 61 00  00 10 00 00 48 fd ff ff  |....18a.....H...|
000000d0  33 5e 5b 1b a7 00 00 00  13 00 00 00 00 00 00 00  |3^[.............|
000000e0  31 39 00 00 a8 10 00 00  48 fd ff ff 46 5c 5b 1b  |19......H...F\[.|
000000f0  75 01 00 00 13 00 00 00  00 00 00 00 31 39 61 00  |u...........19a.|
00000100  20 12 00 00 48 fd ff ff  90 b6 f5 1d 18 01 00 00  | ...H...........|
00000110  13 00 00 00 00 00 00 00  32 32 00 00 38 13 00 00  |........22..8...|
00000120  48 fd ff ff 02 51 19 1e  a6 09 00 00 13 00 00 00  |H....Q..........|
00000130  00 00 00 00 32 32 61 00  e0 1c 00 00 48 fd ff ff  |....22a.....H...|
00000140  cf 21 45 21 93 01 00 00  13 00 00 00 00 00 00 00  |.!E!............|
00000150  32 33 00 00 74 1e 00 00  48 fd ff ff 0a e9 5b 1b  |23..t...H.....[.|
00000160  c6 01 00 00 13 00 00 00  00 00 00 00 32 33 2c 30  |............23,0|
00000170  00 00 00 00 3c 20 00 00  48 fd ff ff ce 47 5b 1b  |....< ..H....G[.|
00000180  ef 00 00 00 13 00 00 00  00 00 00 00 32 33 2c 31  |............23,1|
00000190  00 00 00 00 2c 21 00 00  48 fd ff ff fb 0b 5c 1b  |....,!..H.....\.|
000001a0  cf 00 00 00 13 00 00 00  00 00 00 00 32 33 2c 31  |............23,1|
000001b0  37 00 00 00 fc 21 00 00  48 fd ff ff 51 3f 5b 1b  |7....!..H...Q?[.|
000001c0  73 01 00 00 13 00 00 00  00 00 00 00 32 33 2c 31  |s...........23,1|
000001d0  37 2c 30 00 70 23 00 00  48 fd ff ff 48 3c 5b 1b  |7,0.p#..H...H<[.|
000001e0  fd 00 00 00 13 00 00 00  00 00 00 00 32 33 2c 31  |............23,1|
000001f0  37 2c 34 00 70 24 00 00  48 fd ff ff 90 39 5b 1b  |7,4.p$..H....9[.|
00000200  c3 00 00 00 13 00 00 00  00 00 00 00 32 33 2c 31  |............23,1|
00000210  37 2c 36 00 34 25 00 00  48 fd ff ff 04 ed 3e 21  |7,6.4%..H.....>!|
00000220  09 01 00 00 13 00 00 00  00 00 00 00 32 33 2c 31  |............23,1|
00000230  37 2c 37 00 40 26 00 00  48 fd ff ff 27 e5 39 21  |7,7.@&..H...'.9!|
00000240  fa 01 00 00 13 00 00 00  00 00 00 00 32 33 2c 32  |............23,2|
00000250  00 00 00 00 3c 28 00 00  48 fd ff ff c5 73 c4 26  |....<(..H....s.&|
00000260  2b 01 00 00 13 00 00 00  00 00 00 00 32 33 2c 36  |+...........23,6|
00000270  00 00 00 00 68 29 00 00  48 fd ff ff 52 ad 44 21  |....h)..H...R.D!|
00000280  d7 02 00 00 13 00 00 00  00 00 00 00 32 33 61 00  |............23a.|
00000290  40 2c 00 00 48 fd ff ff  39 f9 36 21 d4 00 00 00  |@,..H...9.6!....|
000002a0  13 00 00 00 00 00 00 00  32 34 00 00 14 2d 00 00  |........24...-..|
000002b0  48 fd ff ff af 31 5c 1b  b0 00 00 00 13 00 00 00  |H....1\.........|
000002c0  00 00 00 00 32 35 00 00  c4 2d 00 00 48 fd ff ff  |....25...-..H...|
000002d0  63 1c 5c 1b 83 00 00 00  13 00 00 00 00 00 00 00  |c.\.............|
000002e0  32 38 00 00 48 2e 00 00  48 fd ff ff b2 06 5b 1b  |28..H...H.....[.|
000002f0  b9 00 00 00 13 00 00 00  00 00 00 00 32 39 00 00  |............29..|
00000300  04 2f 00 00 48 fd ff ff  40 0e 2d 21 6d 02 00 00  |./..H...@.-!m...|
00000310  13 00 00 00 00 00 00 00  33 31 00 00 74 31 00 00  |........31..t1..|
00000320  48 fd ff ff 0b f6 5b 1b  61 01 00 00 13 00 00 00  |H.....[.a.......|
00000330  00 00 00 00 32 33 2c 33  32 2d 32 35 35 00 00 00  |....23,32-255...|
00000340  d8 32 00 00 48 fd ff ff  ff 6b 04 1e 0f 02 00 00  |.2..H....k......|
00000350  13 00 00 00 00 00 00 00  31 34 00 00 e8 34 00 00  |........14...4..|
00000360  48 fd ff ff 06 08 d4 15  15 00 00 00 33 00 00 00  |H...........3...|
00000370  00 00 00 00 31 35 3e 31  34 00 00 00 00 35 00 00  |....15>14....5..|
00000380  48 fd ff ff 95 45 16 21  88 01 00 00 13 00 00 00  |H....E.!........|
00000390  00 00 00 00 30 00 00 00  88 36 00 00 48 fd ff ff  |....0....6..H...|
000003a0  b8 33 19 21 87 01 00 00  13 00 00 00 00 00 00 00  |.3.!............|
000003b0  31 00 00 00 10 38 00 00  48 fd ff ff 36 aa 2d 21  |1....8..H...6.-!|
000003c0  37 01 00 00 13 00 00 00  00 00 00 00 31 30 00 00  |7...........10..|
000003d0  48 39 00 00 48 fd ff ff  0a b8 2d 21 34 01 00 00  |H9..H.....-!4...|
000003e0  13 00 00 00 00 00 00 00  31 31 00 00 7c 3a 00 00  |........11..|:..|
000003f0  48 fd ff ff 4f f3 3d 21  ee 00 00 00 13 00 00 00  |H...O.=!........|
00000400  00 00 00 00 31 32 00 00  6c 3b 00 00 48 fd ff ff  |....12..l;..H...|
00000410  75 d4 3d 21 ff 00 00 00  13 00 00 00 00 00 00 00  |u.=!............|
00000420  31 33 00 00 6c 3c 00 00  48 fd ff ff 6f ef 2b 21  |13..l<..H...o.+!|
00000430  8d 01 00 00 13 00 00 00  00 00 00 00 31 32 37 00  |............127.|
00000440  fc 3d 00 00 48 fd ff ff  66 f5 d4 27 e4 00 00 00  |.=..H...f..'....|
00000450  13 00 00 00 00 00 00 00  31 36 00 00 e0 3e 00 00  |........16...>..|
00000460  48 fd ff ff df fc 43 21  28 03 00 00 13 00 00 00  |H.....C!(.......|
00000470  00 00 00 00 32 00 00 00  08 42 00 00 48 fd ff ff  |....2....B..H...|
00000480  af ae 3d 21 05 01 00 00  13 00 00 00 00 00 00 00  |..=!............|
00000490  32 30 00 00 10 43 00 00  48 fd ff ff 0c 25 18 21  |20...C..H....%.!|
000004a0  6b 02 00 00 13 00 00 00  00 00 00 00 32 31 00 00  |k...........21..|
000004b0  7c 45 00 00 48 fd ff ff  42 39 0b 1d 32 01 00 00  ||E..H...B9..2...|
000004c0  13 00 00 00 00 00 00 00  32 33 2c 31 30 00 00 00  |........23,10...|
000004d0  b0 46 00 00 48 fd ff ff  af 91 3a 21 af 00 00 00  |.F..H.....:!....|
000004e0  13 00 00 00 00 00 00 00  32 33 2c 31 31 00 00 00  |........23,11...|
000004f0  60 47 00 00 48 fd ff ff  fe f5 39 21 ca 01 00 00  |`G..H.....9!....|
00000500  13 00 00 00 00 00 00 00  32 33 2c 31 32 00 00 00  |........23,12...|
00000510  2c 49 00 00 48 fd ff ff  a1 9c 2c 21 10 04 00 00  |,I..H.....,!....|
00000520  13 00 00 00 00 00 00 00  32 33 2c 31 36 00 00 00  |........23,16...|
00000530  3c 4d 00 00 48 fd ff ff  f9 08 29 21 d8 02 00 00  |<M..H.....)!....|
00000540  13 00 00 00 00 00 00 00  32 33 2c 37 00 00 00 00  |........23,7....|
00000550  14 50 00 00 48 fd ff ff  58 45 3d 21 3a 03 00 00  |.P..H...XE=!:...|
00000560  13 00 00 00 00 00 00 00  32 33 2c 38 00 00 00 00  |........23,8....|
00000570  50 53 00 00 48 fd ff ff  1f 3c 0b 1d 2e 01 00 00  |PS..H....<......|
00000580  13 00 00 00 00 00 00 00  32 33 2c 39 00 00 00 00  |........23,9....|
00000590  80 54 00 00 48 fd ff ff  2a 01 38 21 22 01 00 00  |.T..H...*.8!"...|
000005a0  13 00 00 00 00 00 00 00  32 36 00 00 a4 55 00 00  |........26...U..|
000005b0  48 fd ff ff 43 a1 16 21  52 00 00 00 13 00 00 00  |H...C..!R.......|
000005c0  00 00 00 00 32 37 00 00  f8 55 00 00 48 fd ff ff  |....27...U..H...|
000005d0  7d df 18 21 cd 00 00 00  13 00 00 00 00 00 00 00  |}..!............|
000005e0  33 00 00 00 c8 56 00 00  48 fd ff ff b8 27 3c 21  |3....V..H....'<!|
000005f0  f6 05 00 00 13 00 00 00  00 00 00 00 45 43 46 5f  |............ECF_|
00000600  44 65 66 61 75 6c 74 00  c0 5c 00 00 48 fd ff ff  |Default..\..H...|
00000610  de 95 40 21 2f 04 00 00  13 00 00 00 00 00 00 00  |..@!/...........|
00000620  53 63 72 6f 6c 6c 5f 50  72 6f 74 65 63 74 69 6f  |Scroll_Protectio|
00000630  6e 00 00 00 f0 60 00 00  48 fd ff ff 4d 4d 37 21  |n....`..H...MM7!|
00000640  c1 01 00 00 13 00 00 00  00 00 00 00 33 30 00 00  |............30..|
00000650  b4 62 00 00 48 fd ff ff  a3 85 c5 26 58 03 00 00  |.b..H......&X...|
00000660  13 00 00 00 00 00 00 00  34 00 00 00 0c 66 00 00  |........4....f..|
00000670  48 fd ff ff 62 35 40 21  18 04 00 00 13 00 00 00  |H...b5@!........|
00000680  00 00 00 00 35 00 00 00  24 6a 00 00 48 fd ff ff  |....5...$j..H...|
00000690  84 fe 17 21 b3 00 00 00  13 00 00 00 00 00 00 00  |...!............|
000006a0  36 00 00 00 d8 6a 00 00  48 fd ff ff d3 44 3e 21  |6....j..H....D>!|
000006b0  b9 00 00 00 13 00 00 00  00 00 00 00 37 00 00 00  |............7...|
000006c0  94 6b 00 00 48 fd ff ff  c0 60 2c 21 a8 01 00 00  |.k..H....`,!....|
000006d0  13 00 00 00 00 00 00 00  38 00 00 00 3c 6d 00 00  |........8...<m..|
000006e0  48 fd ff ff 9d 3a 2d 21  c4 01 00 00 13 00 00 00  |H....:-!........|
000006f0  00 00 00 00 39 00 00 00  00 6f 00 00 48 fd ff ff  |....9....o..H...|
00000700  0c 45 80 2b 27 05 00 00  03 00 00 00 00 00 00 00  |.E.+'...........|
00000710  61 62 6f 75 74 00 00 00  44 41 54 41 71 05 00 00  |about...DATAq...|
00000720  56 44 55 20 63 6f 64 65  73 0a 23 50 61 72 65 6e  |VDU codes.#Paren|
00000730  74 20 53 74 72 6f 6e 67  48 65 6c 70 3a 21 4d 65  |t StrongHelp:!Me|
00000740  6e 75 0a 30 09 3c 4e 75  6c 6c 20 4f 70 65 72 61  |nu.0.<Null Opera|
00000750  74 69 6f 6e 3d 3e 30 3e  09 09 09 09 20 09 09 31  |tion=>0>.... ..1|
00000760  36 09 3c 43 6c 65 61 72  20 67 72 61 70 68 69 63  |6.<Clear graphic|
00000770  73 20 77 69 6e 64 6f 77  3d 3e 31 36 3e 0a 31 09  |s window=>16>.1.|
00000780  3c 53 65 6e 64 20 6e 65  78 74 20 63 68 61 72 20  |<Send next char |
00000790  74 6f 20 70 72 69 6e 74  65 72 3d 3e 31 3e 09 09  |to printer=>1>..|
000007a0  09 20 09 09 31 37 09 3c  53 65 74 20 74 65 78 74  |. ..17.<Set text|
000007b0  20 63 6f 6c 6f 75 72 3d  3e 31 37 3e 0a 32 09 3c  | colour=>17>.2.<|
000007c0  45 6e 61 62 6c 65 20 70  72 69 6e 74 65 72 3d 3e  |Enable printer=>|
000007d0  32 3e 09 09 09 09 20 09  09 31 38 09 3c 53 65 74  |2>.... ..18.<Set|
000007e0  20 67 72 61 70 68 69 63  73 20 63 6f 6c 6f 75 72  | graphics colour|
000007f0  20 61 6e 64 20 61 63 74  69 6f 6e 3d 3e 31 38 3e  | and action=>18>|
00000800  0a 33 09 3c 44 69 73 61  62 6c 65 20 70 72 69 6e  |.3.<Disable prin|
00000810  74 65 72 3d 3e 33 3e 09  09 09 09 20 09 09 31 39  |ter=>3>.... ..19|
00000820  09 3c 53 65 74 20 70 61  6c 65 74 74 65 3d 3e 31  |.<Set palette=>1|
00000830  39 3e 0a 34 09 3c 53 70  6c 69 74 20 74 65 78 74  |9>.4.<Split text|
00000840  2c 67 72 61 70 68 69 63  73 20 63 75 72 73 6f 72  |,graphics cursor|
00000850  73 3d 3e 34 3e 09 09 20  09 09 32 30 09 3c 52 65  |s=>4>.. ..20.<Re|
00000860  73 74 6f 72 65 20 64 65  66 61 75 6c 74 20 63 6f  |store default co|
00000870  6c 6f 75 72 73 3d 3e 32  30 3e 0a 35 09 3c 4a 6f  |lours=>20>.5.<Jo|
00000880  69 6e 20 74 65 78 74 2c  67 72 61 70 68 69 63 73  |in text,graphics|
00000890  20 63 75 72 73 6f 72 73  3d 3e 35 3e 09 09 09 20  | cursors=>5>... |
000008a0  09 09 32 31 09 3c 44 69  73 61 62 6c 65 20 73 63  |..21.<Disable sc|
000008b0  72 65 65 6e 20 6f 75 74  70 75 74 3d 3e 32 31 3e  |reen output=>21>|
000008c0  0a 36 09 3c 45 6e 61 62  6c 65 20 73 63 72 65 65  |.6.<Enable scree|
000008d0  6e 20 6f 75 74 70 75 74  3d 3e 36 3e 09 09 09 20  |n output=>6>... |
000008e0  09 09 32 32 09 3c 43 68  61 6e 67 65 20 53 63 72  |..22.<Change Scr|
000008f0  65 65 6e 20 4d 6f 64 65  3d 3e 32 32 3e 0a 37 09  |een Mode=>22>.7.|
00000900  3c 42 65 6c 6c 3d 3e 37  3e 09 09 09 09 09 20 09  |<Bell=>7>..... .|
00000910  09 32 33 09 3c 4d 69 73  63 3d 3e 32 33 3e 0a 38  |.23.<Misc=>23>.8|
00000920  09 3c 42 61 63 6b 20 73  70 61 63 65 3d 3e 38 3e  |.<Back space=>8>|
00000930  09 09 09 09 09 28 6d 6f  76 65 20 6c 65 66 74 29  |.....(move left)|
00000940  09 32 34 09 3c 44 65 66  69 6e 65 20 67 72 61 70  |.24.<Define grap|
00000950  68 69 63 73 20 77 69 6e  64 6f 77 3d 3e 32 34 3e  |hics window=>24>|
00000960  0a 39 09 3c 48 6f 72 69  7a 6f 6e 74 61 6c 20 74  |.9.<Horizontal t|
00000970  61 62 3d 3e 39 3e 09 09  09 09 28 6d 6f 76 65 20  |ab=>9>....(move |
00000980  72 69 67 68 74 29 20 20  20 09 32 35 09 3c 50 6c  |right)   .25.<Pl|
00000990  6f 74 3d 3e 32 35 3e 0a  31 30 09 3c 4c 69 6e 65  |ot=>25>.10.<Line|
000009a0  20 66 65 65 64 3d 3e 31  30 3e 09 09 09 09 09 28  | feed=>10>.....(|
000009b0  6d 6f 76 65 20 64 6f 77  6e 29 09 32 36 09 3c 52  |move down).26.<R|
000009c0  65 73 74 6f 72 65 20 64  65 66 61 75 6c 74 20 77  |estore default w|
000009d0  69 6e 64 6f 77 73 3d 3e  32 36 3e 0a 31 31 09 3c  |indows=>26>.11.<|
000009e0  56 65 72 74 69 63 61 6c  20 74 61 62 3d 3e 31 31  |Vertical tab=>11|
000009f0  3e 09 09 09 09 28 6d 6f  76 65 20 75 70 29 09 32  |>....(move up).2|
00000a00  37 09 3c 4e 75 6c 6c 20  4f 70 65 72 61 74 69 6f  |7.<Null Operatio|
00000a10  6e 3d 3e 32 37 3e 0a 31  32 09 3c 46 6f 72 6d 20  |n=>27>.12.<Form |
00000a20  66 65 65 64 2f 63 6c 65  61 72 20 73 63 72 65 65  |feed/clear scree|
00000a30  6e 3d 3e 31 32 3e 09 09  09 20 09 09 32 38 09 3c  |n=>12>... ..28.<|
00000a40  44 65 66 69 6e 65 20 74  65 78 74 20 77 69 6e 64  |Define text wind|
00000a50  6f 77 3d 3e 32 38 3e 0a  31 33 09 3c 43 61 72 72  |ow=>28>.13.<Carr|
00000a60  69 61 67 65 20 72 65 74  75 72 6e 3d 3e 31 33 3e  |iage return=>13>|
00000a70  09 09 09 09 20 09 09 32  39 09 3c 53 65 74 20 67  |.... ..29.<Set g|
00000a80  72 61 70 68 69 63 73 20  6f 72 69 67 69 6e 3d 3e  |raphics origin=>|
00000a90  32 39 3e 0a 31 34 09 3c  50 61 67 65 20 6d 6f 64  |29>.14.<Page mod|
00000aa0  65 20 6f 6e 3d 3e 31 34  3e 09 09 09 09 20 09 09  |e on=>14>.... ..|
00000ab0  33 30 09 3c 48 6f 6d 65  3d 3e 33 30 3e 0a 31 35  |30.<Home=>30>.15|
00000ac0  09 3c 50 61 67 65 20 6d  6f 64 65 20 6f 66 66 3d  |.<Page mode off=|
00000ad0  3e 31 34 3e 09 09 09 09  20 09 09 33 31 09 3c 50  |>14>.... ..31.<P|
00000ae0  6f 73 69 74 69 6f 6e 20  74 65 78 74 20 63 75 72  |osition text cur|
00000af0  73 6f 72 3d 3e 33 31 3e  0a 31 32 37 09 3c 44 65  |sor=>31>.127.<De|
00000b00  6c 65 74 65 3d 3e 31 32  37 3e 0a 0a 23 54 61 62  |lete=>127>..#Tab|
00000b10  0a 53 65 65 20 61 6c 73  6f 3a 0a 20 20 20 09 3c  |.See also:.   .<|
00000b20  4f 53 5f 52 65 61 64 56  44 55 56 61 72 69 61 62  |OS_ReadVDUVariab|
00000b30  6c 65 73 3d 3e 4f 53 3a  4f 53 5f 52 65 61 64 56  |les=>OS:OS_ReadV|
00000b40  44 55 56 61 72 69 61 62  6c 65 73 3e 09 20 09 09  |DUVariables>. ..|
00000b50  20 09 3c 53 63 72 6f 6c  6c 20 70 72 6f 74 65 63  | .<Scroll protec|
00000b60  74 69 6f 6e 3d 3e 53 63  72 6f 6c 6c 5f 50 72 6f  |tion=>Scroll_Pro|
00000b70  74 65 63 74 69 6f 6e 3e  0a 09 3c 4f 75 74 70 75  |tection>..<Outpu|
00000b80  74 20 73 74 72 65 61 6d  20 73 74 61 74 75 73 3d  |t stream status=|
00000b90  3e 4f 53 3a 4f 53 5f 42  79 74 65 30 30 33 3e 09  |>OS:OS_Byte003>.|
00000ba0  09 20 09 09 20 09 3c 56  44 55 20 73 74 61 74 75  |. .. .<VDU statu|
00000bb0  73 3d 3e 4f 53 3a 4f 53  5f 42 79 74 65 31 31 37  |s=>OS:OS_Byte117|
00000bc0  3e 0a 09 3c 55 6e 6b 6e  6f 77 6e 20 56 44 55 32  |>..<Unknown VDU2|
00000bd0  33 20 76 65 63 74 6f 72  3d 3e 4f 53 3a 76 65 63  |3 vector=>OS:vec|
00000be0  74 6f 72 5f 75 6b 76 64  75 32 33 76 3e 09 20 09  |tor_ukvdu23v>. .|
00000bf0  09 20 09 3c 55 6e 6b 6e  6f 77 6e 20 70 6c 6f 74  |. .<Unknown plot|
00000c00  20 76 65 63 74 6f 72 3d  3e 4f 53 3a 76 65 63 74  | vector=>OS:vect|
00000c10  6f 72 5f 75 6b 70 6c 6f  74 76 3e 0a 09 3c 56 44  |or_ukplotv>..<VD|
00000c20  55 20 65 78 74 65 6e 73  69 6f 6e 20 76 65 63 74  |U extension vect|
00000c30  6f 72 3d 3e 4f 53 3a 76  65 63 74 6f 72 5f 76 64  |or=>OS:vector_vd|
00000c40  75 78 76 3e 0a 23 49 6e  64 65 6e 74 3b 4c 69 6e  |uxv>.#Indent;Lin|
00000c50  65 3b 61 6c 69 67 6e 20  63 65 6e 74 72 65 0a 7b  |e;align centre.{|
00000c60  2f 7d 3c 56 44 55 20 63  6f 6d 6d 61 6e 64 73 20  |/}<VDU commands |
00000c70  6d 61 6e 75 61 6c 3d 3e  61 62 6f 75 74 3e 2c 20  |manual=>about>, |
00000c80  76 32 2e 30 30 7b 2f 7d  0a 00 00 00 44 41 54 41  |v2.00{/}....DATA|
00000c90  4c 00 00 00 56 44 55 20  31 37 0a 23 50 61 72 65  |L...VDU 17.#Pare|
00000ca0  6e 74 20 21 52 6f 6f 74  0a 23 57 72 61 70 20 4f  |nt !Root.#Wrap O|
00000cb0  66 66 0a 53 65 74 20 74  65 78 74 20 63 6f 6c 6f  |ff.Set text colo|
00000cc0  75 72 3a 0a 56 44 55 20  31 37 2c 3c 63 6f 6c 6f  |ur:.VDU 17,<colo|
00000cd0  75 72 3d 3e 31 37 61 3e  44 41 54 41 b7 00 00 00  |ur=>17a>DATA....|
00000ce0  43 6f 6c 6f 75 72 0a 23  50 61 72 65 6e 74 20 31  |Colour.#Parent 1|
00000cf0  37 0a 30 2d 31 32 37 20  3a 09 46 6f 72 65 67 72  |7.0-127 :.Foregr|
00000d00  6f 75 6e 64 20 63 6f 6c  6f 75 72 20 73 65 74 2e  |ound colour set.|
00000d10  0a 31 32 38 2d 32 35 35  20 3a 09 42 61 63 6b 67  |.128-255 :.Backg|
00000d20  72 6f 75 6e 64 20 63 6f  6c 6f 75 72 20 73 65 74  |round colour set|
00000d30  20 74 6f 20 63 6f 6c 6f  75 72 2d 31 32 38 2e 0a  | to colour-128..|
00000d40  0a 63 6f 6c 6f 75 72 20  75 73 65 64 20 3d 20 63  |.colour used = c|
00000d50  6f 6c 6f 75 72 20 41 4e  44 20 6d 61 78 63 6f 6c  |olour AND maxcol|
00000d60  2e 0a 0a 6d 61 78 63 6f  6c 20 69 73 20 31 2c 33  |...maxcol is 1,3|
00000d70  2c 31 35 20 6f 72 20 36  33 20 66 6f 72 20 32 35  |,15 or 63 for 25|
00000d80  36 2d 63 6f 6c 6f 75 72  20 6d 6f 64 65 73 2e 00  |6-colour modes..|
00000d90  44 41 54 41 b6 00 00 00  56 44 55 20 31 38 0a 23  |DATA....VDU 18.#|
00000da0  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 56 44 55  |Parent !Root.VDU|
00000db0  20 31 38 2c 3c 61 63 74  69 6f 6e 3d 3e 31 38 61  | 18,<action=>18a|
00000dc0  3e 2c 3c 63 6f 6c 6f 75  72 3d 3e 31 37 61 3e 0a  |>,<colour=>17a>.|
00000dd0  54 68 69 73 20 56 44 55  20 69 73 20 75 73 65 64  |This VDU is used|
00000de0  20 74 6f 20 64 65 66 69  6e 65 20 67 72 61 70 68  | to define graph|
00000df0  69 63 73 20 66 6f 72 65  20 6f 72 20 62 61 63 6b  |ics fore or back|
00000e00  67 72 6f 75 6e 64 20 63  6f 6c 6f 75 72 2c 20 61  |ground colour, a|
00000e10  6e 64 20 74 68 65 20 77  61 79 20 69 6e 20 77 68  |nd the way in wh|
00000e20  69 63 68 20 69 74 20 69  73 20 74 6f 20 62 65 20  |ich it is to be |
00000e30  70 6c 6f 74 74 65 64 20  6f 6e 20 74 68 65 20 73  |plotted on the s|
00000e40  63 72 65 65 6e 2e 00 00  44 41 54 41 b6 01 00 00  |creen...DATA....|
00000e50  41 63 74 69 6f 6e 3a 0a  23 50 61 72 65 6e 74 20  |Action:.#Parent |
00000e60  31 38 0a 73 20 69 73 20  70 69 78 65 6c 20 6f 6e  |18.s is pixel on|
00000e70  20 73 63 72 65 65 6e 2e  0a 63 20 69 73 20 6e 65  | screen..c is ne|
00000e80  77 20 63 6f 6c 6f 75 72  2e 0a 0a 56 61 6c 75 65  |w colour...Value|
00000e90  20 20 41 63 74 69 6f 6e  0a 23 4c 69 6e 65 0a 30  |  Action.#Line.0|
00000ea0  09 73 20 3d 20 63 0a 31  09 73 20 3d 20 73 20 4f  |.s = c.1.s = s O|
00000eb0  52 20 63 0a 32 09 73 20  3d 20 73 20 41 4e 44 20  |R c.2.s = s AND |
00000ec0  63 0a 33 09 73 20 3d 20  73 20 58 4f 52 20 63 0a  |c.3.s = s XOR c.|
00000ed0  34 09 73 20 3d 20 4e 4f  54 20 73 0a 35 0a 36 09  |4.s = NOT s.5.6.|
00000ee0  73 20 3d 20 73 20 41 4e  44 20 4e 4f 54 20 63 0a  |s = s AND NOT c.|
00000ef0  37 09 73 20 3d 20 73 20  4f 52 20 4e 4f 54 20 63  |7.s = s OR NOT c|
00000f00  0a 38 2d 31 35 09 41 73  20 30 2d 37 20 62 75 74  |.8-15.As 0-7 but|
00000f10  20 62 61 63 6b 67 72 6f  75 6e 64 20 63 6f 6c 20  | background col |
00000f20  69 73 20 74 72 61 6e 73  70 61 72 65 6e 74 2e 0a  |is transparent..|
00000f30  31 36 2d 33 31 09 43 6f  6c 6f 75 72 20 70 61 74  |16-31.Colour pat|
00000f40  74 65 72 6e 20 31 2c 20  75 73 69 6e 67 20 61 63  |tern 1, using ac|
00000f50  74 69 6f 6e 20 30 2d 31  35 0a 33 32 2d 34 37 09  |tion 0-15.32-47.|
00000f60  43 6f 6c 6f 75 72 20 70  61 74 74 65 72 6e 20 32  |Colour pattern 2|
00000f70  2c 20 75 73 69 6e 67 20  61 63 74 69 6f 6e 20 30  |, using action 0|
00000f80  2d 31 35 0a 34 38 2d 36  33 09 43 6f 6c 6f 75 72  |-15.48-63.Colour|
00000f90  20 70 61 74 74 65 72 6e  20 33 2c 20 75 73 69 6e  | pattern 3, usin|
00000fa0  67 20 61 63 74 69 6f 6e  20 30 2d 31 35 0a 36 34  |g action 0-15.64|
00000fb0  2d 37 39 09 43 6f 6c 6f  75 72 20 70 61 74 74 65  |-79.Colour patte|
00000fc0  72 6e 20 34 2c 20 75 73  69 6e 67 20 61 63 74 69  |rn 4, using acti|
00000fd0  6f 6e 20 30 2d 31 35 0a  38 30 2d 39 35 09 47 69  |on 0-15.80-95.Gi|
00000fe0  61 6e 74 20 70 61 74 74  65 72 6e 2c 20 75 73 69  |ant pattern, usi|
00000ff0  6e 67 20 61 63 74 69 6f  6e 20 30 2d 31 35 00 00  |ng action 0-15..|
00001000  44 41 54 41 a7 00 00 00  56 44 55 20 31 39 0a 23  |DATA....VDU 19.#|
00001010  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 23 57 72  |Parent !Root.#Wr|
00001020  61 70 20 4f 66 66 0a 56  44 55 20 31 39 2c 63 6f  |ap Off.VDU 19,co|
00001030  6c 6f 75 72 2c 3c 6d 6f  64 65 3d 3e 31 39 61 3e  |lour,<mode=>19a>|
00001040  2c 72 2c 67 2c 62 0a 23  57 72 61 70 20 4f 6e 0a  |,r,g,b.#Wrap On.|
00001050  54 68 69 73 20 56 44 55  20 64 65 66 69 6e 65 73  |This VDU defines|
00001060  20 74 68 65 20 52 47 42  20 76 61 6c 75 65 20 66  | the RGB value f|
00001070  6f 72 20 74 68 65 20 62  6f 72 64 65 72 2c 20 6f  |or the border, o|
00001080  72 20 6f 6e 65 20 6f 66  20 74 68 65 20 73 63 72  |r one of the scr|
00001090  65 65 6e 20 6f 72 20 70  6f 69 6e 74 65 72 20 63  |een or pointer c|
000010a0  6f 6c 6f 75 72 73 2e 00  44 41 54 41 75 01 00 00  |olours..DATAu...|
000010b0  4d 6f 64 65 3a 0a 23 50  61 72 65 6e 74 20 21 52  |Mode:.#Parent !R|
000010c0  6f 6f 74 0a 4d 6f 64 65  09 41 63 74 69 6f 6e 0a  |oot.Mode.Action.|
000010d0  23 4c 69 6e 65 0a 30 2d  31 35 09 6c 6f 67 69 63  |#Line.0-15.logic|
000010e0  61 6c 20 63 6f 6c 20 3d  20 61 63 74 75 61 6c 20  |al col = actual |
000010f0  63 6f 6c 0a 31 36 09 6c  6f 67 69 63 61 6c 20 63  |col.16.logical c|
00001100  6f 6c 6f 75 72 20 3d 20  52 47 42 0a 31 37 09 66  |olour = RGB.17.f|
00001110  69 72 73 74 20 66 6c 61  73 68 20 3d 20 52 47 42  |irst flash = RGB|
00001120  0a 31 38 09 73 65 63 6f  6e 64 20 66 6c 61 73 68  |.18.second flash|
00001130  20 3d 20 52 47 42 0a 32  34 09 42 6f 72 64 65 72  | = RGB.24.Border|
00001140  20 63 6f 6c 6f 75 72 20  3d 20 52 47 42 0a 32 35  | colour = RGB.25|
00001150  09 50 6f 69 6e 74 65 72  20 63 6f 6c 20 3d 20 52  |.Pointer col = R|
00001160  47 42 0a 0a 41 64 64 20  31 32 38 20 74 6f 20 73  |GB..Add 128 to s|
00001170  65 74 20 73 75 70 72 65  6d 61 63 79 20 62 69 74  |et supremacy bit|
00001180  2e 0a 0a 4f 6e 6c 79 20  74 6f 70 20 66 6f 75 72  |...Only top four|
00001190  20 62 69 74 73 20 6f 66  20 52 2c 47 20 61 6e 64  | bits of R,G and|
000011a0  20 42 2c 20 69 73 20 75  73 65 64 20 74 6f 64 61  | B, is used toda|
000011b0  79 2c 20 62 75 74 20 69  66 20 79 6f 75 20 77 61  |y, but if you wa|
000011c0  6e 74 20 74 68 65 20 63  6f 6c 6f 75 72 73 20 74  |nt the colours t|
000011d0  6f 20 6c 6f 6f 6b 20 74  68 65 20 73 61 6d 65 20  |o look the same |
000011e0  6f 6e 20 61 20 66 75 74  75 72 65 20 32 34 2d 62  |on a future 24-b|
000011f0  69 74 20 56 49 44 43 2c  20 79 6f 75 20 73 68 6f  |it VIDC, you sho|
00001200  75 6c 64 20 73 65 74 20  62 6f 74 74 6f 6d 20 62  |uld set bottom b|
00001210  69 74 73 3d 74 6f 70 20  62 69 74 73 2e 00 00 00  |its=top bits....|
00001220  44 41 54 41 18 01 00 00  56 44 55 20 32 32 0a 23  |DATA....VDU 22.#|
00001230  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 56 44 55  |Parent !Root.VDU|
00001240  20 32 32 2c 3c 6d 6f 64  65 3d 3e 32 32 61 3e 0a  | 22,<mode=>22a>.|
00001250  54 68 69 73 20 56 44 55  20 69 73 20 75 73 65 64  |This VDU is used|
00001260  20 74 6f 20 73 65 6c 65  63 74 20 73 63 72 65 65  | to select scree|
00001270  6e 20 6d 6f 64 65 2e 0a  0a 54 6f 20 72 65 61 64  |n mode...To read|
00001280  20 77 68 69 63 68 20 6d  6f 64 65 20 69 73 20 63  | which mode is c|
00001290  75 72 72 65 6e 74 6c 79  20 73 65 74 2c 20 75 73  |urrently set, us|
000012a0  65 20 3c 4f 53 5f 42 79  74 65 20 31 33 35 3d 3e  |e <OS_Byte 135=>|
000012b0  4f 53 3a 4f 53 5f 42 79  74 65 31 33 35 3e 2e 0a  |OS:OS_Byte135>..|
000012c0  54 6f 20 72 65 61 64 20  6f 74 68 65 72 20 69 6e  |To read other in|
000012d0  66 6f 2c 20 75 73 65 20  3c 4f 53 5f 52 65 61 64  |fo, use <OS_Read|
000012e0  4d 6f 64 65 56 61 72 69  61 62 6c 65 3d 3e 4f 53  |ModeVariable=>OS|
000012f0  3a 4f 53 5f 52 65 61 64  4d 6f 64 65 56 61 72 69  |:OS_ReadModeVari|
00001300  61 62 6c 65 3e 20 6f 72  20 3c 4f 53 5f 52 65 61  |able> or <OS_Rea|
00001310  64 56 64 75 56 61 72 69  61 62 6c 65 73 3d 3e 4f  |dVduVariables=>O|
00001320  53 3a 4f 53 5f 52 65 61  64 56 64 75 56 61 72 69  |S:OS_ReadVduVari|
00001330  61 62 6c 65 73 3e 2e 0a  44 41 54 41 a6 09 00 00  |ables>..DATA....|
00001340  53 74 61 6e 64 61 72 64  20 4d 6f 64 65 73 3a 0a  |Standard Modes:.|
00001350  23 50 61 72 65 6e 74 20  32 32 0a 23 46 33 3d 43  |#Parent 22.#F3=C|
00001360  6f 72 70 75 73 2e 4d 65  64 69 75 6d 20 31 32 0a  |orpus.Medium 12.|
00001370  23 54 61 62 20 41 6c 69  67 6e 20 52 69 67 68 74  |#Tab Align Right|
00001380  2c 20 41 6c 69 67 6e 20  52 69 67 68 74 2c 20 41  |, Align Right, A|
00001390  6c 69 67 6e 20 52 69 67  68 74 2c 20 41 6c 69 67  |lign Right, Alig|
000013a0  6e 20 52 69 67 68 74 2c  20 41 6c 69 67 6e 20 52  |n Right, Align R|
000013b0  69 67 68 74 2c 20 41 6c  69 67 6e 20 4c 65 66 74  |ight, Align Left|
000013c0  0a 4d 6f 64 65 09 63 6f  6c 20 d7 20 72 6f 77 09  |.Mode.col . row.|
000013d0  70 69 78 78 20 d7 20 70  69 78 79 09 63 6f 6c 6f  |pixx . pixy.colo|
000013e0  75 72 73 09 4d 65 6d 6f  72 79 09 54 79 70 65 0a  |urs.Memory.Type.|
000013f0  23 4c 69 6e 65 0a 23 20  48 6d 6d 2e 20 46 6f 72  |#Line.# Hmm. For|
00001400  20 73 6f 6d 65 20 72 65  61 73 6f 6e 20 53 74 72  | some reason Str|
00001410  6f 6e 67 48 65 6c 70 20  77 61 73 20 2a 6e 6f 74  |ongHelp was *not|
00001420  2a 20 64 69 73 70 6c 61  79 69 6e 67 20 6d 6f 72  |* displaying mor|
00001430  65 20 74 68 61 6e 20 6f  6e 65 20 2a 20 69 6e 20  |e than one * in |
00001440  66 33 0a 23 20 4c 65 61  6e 69 6e 67 20 74 6f 6f  |f3.# Leaning too|
00001450  74 68 70 69 63 6b 20 73  79 6e 64 72 6f 6d 65 20  |thpick syndrome |
00001460  63 75 72 65 73 20 74 68  69 73 20 3a 2d 29 0a 30  |cures this :-).0|
00001470  09 38 30 d7 33 32 09 09  36 34 30 d7 32 35 36 09  |.80.32..640.256.|
00001480  09 32 09 32 30 4b 09 7b  66 33 7d 5c 2a 5c 2a 5c  |.2.20K.{f3}\*\*\|
00001490  2a 5c 2a 2d 7b 66 7d 0a  31 09 34 30 d7 33 32 09  |*\*-{f}.1.40.32.|
000014a0  09 33 32 30 d7 32 35 36  09 09 34 09 32 30 4b 09  |.320.256..4.20K.|
000014b0  7b 66 33 7d 5c 2a 5c 2a  5c 2a 5c 2a 2d 7b 66 7d  |{f3}\*\*\*\*-{f}|
000014c0  0a 32 09 32 30 d7 33 32  09 09 31 36 30 d7 32 35  |.2.20.32..160.25|
000014d0  36 09 09 31 36 09 34 30  4b 09 7b 66 33 7d 5c 2a  |6..16.40K.{f3}\*|
000014e0  5c 2a 5c 2a 5c 2a 2d 7b  66 7d 0a 33 09 38 30 d7  |\*\*\*-{f}.3.80.|
000014f0  32 35 09 09 54 65 78 74  20 6f 6e 6c 79 09 32 09  |25..Text only.2.|
00001500  34 30 4b 09 7b 66 33 7d  5c 2a 5c 2a 5c 2a 5c 2a  |40K.{f3}\*\*\*\*|
00001510  2d 7b 66 7d 0a 34 09 34  30 d7 33 32 09 09 33 32  |-{f}.4.40.32..32|
00001520  30 d7 32 35 36 09 09 32  09 32 30 4b 09 7b 66 33  |0.256..2.20K.{f3|
00001530  7d 5c 2a 5c 2a 5c 2a 5c  2a 2d 7b 66 7d 0a 35 09  |}\*\*\*\*-{f}.5.|
00001540  32 30 d7 33 32 09 09 31  36 30 d7 32 35 36 09 09  |20.32..160.256..|
00001550  34 09 32 30 4b 09 7b 66  33 7d 5c 2a 5c 2a 5c 2a  |4.20K.{f3}\*\*\*|
00001560  5c 2a 2d 7b 66 7d 0a 36  09 34 30 d7 32 35 09 09  |\*-{f}.6.40.25..|
00001570  54 65 78 74 20 6f 6e 6c  79 09 32 09 32 30 4b 09  |Text only.2.20K.|
00001580  7b 66 33 7d 5c 2a 5c 2a  5c 2a 5c 2a 2d 7b 66 7d  |{f3}\*\*\*\*-{f}|
00001590  0a 37 09 34 30 d7 32 35  09 09 54 65 6c 65 74 65  |.7.40.25..Telete|
000015a0  78 74 09 31 36 09 38 30  4b 09 7b 66 33 7d 5c 2a  |xt.16.80K.{f3}\*|
000015b0  5c 2a 5c 2a 5c 2a 2d 7b  66 7d 0a 38 09 38 30 d7  |\*\*\*-{f}.8.80.|
000015c0  33 32 09 09 36 34 30 d7  32 35 36 09 09 34 09 34  |32..640.256..4.4|
000015d0  30 4b 09 7b 66 33 7d 5c  2a 5c 2a 5c 2a 5c 2a 2d  |0K.{f3}\*\*\*\*-|
000015e0  7b 66 7d 0a 39 09 34 30  d7 33 32 09 09 33 32 30  |{f}.9.40.32..320|
000015f0  d7 32 35 36 09 09 31 36  09 34 30 4b 09 7b 66 33  |.256..16.40K.{f3|
00001600  7d 5c 2a 5c 2a 5c 2a 5c  2a 2d 7b 66 7d 0a 31 30  |}\*\*\*\*-{f}.10|
00001610  09 32 30 d7 33 32 09 09  31 36 30 d7 32 35 36 09  |.20.32..160.256.|
00001620  09 32 35 36 09 38 30 4b  09 7b 66 33 7d 5c 2a 5c  |.256.80K.{f3}\*\|
00001630  2a 5c 2a 5c 2a 2d 7b 66  7d 0a 31 31 09 38 30 d7  |*\*\*-{f}.11.80.|
00001640  32 35 09 09 36 34 30 d7  32 35 30 09 09 34 09 34  |25..640.250..4.4|
00001650  30 4b 09 7b 66 33 7d 5c  2a 5c 2a 5c 2a 5c 2a 2d  |0K.{f3}\*\*\*\*-|
00001660  7b 66 7d 0a 31 32 09 38  30 d7 33 32 09 09 36 34  |{f}.12.80.32..64|
00001670  30 d7 32 35 36 09 09 31  36 09 38 30 4b 09 7b 66  |0.256..16.80K.{f|
00001680  33 7d 5c 2a 5c 2a 5c 2a  5c 2a 2d 7b 66 7d 0a 31  |3}\*\*\*\*-{f}.1|
00001690  33 09 34 30 d7 33 32 09  09 33 32 30 d7 32 35 36  |3.40.32..320.256|
000016a0  09 09 32 35 36 09 38 30  4b 09 7b 66 33 7d 5c 2a  |..256.80K.{f3}\*|
000016b0  5c 2a 5c 2a 5c 2a 2d 7b  66 7d 0a 31 34 09 38 30  |\*\*\*-{f}.14.80|
000016c0  d7 32 35 09 09 36 34 30  d7 32 35 30 09 09 31 36  |.25..640.250..16|
000016d0  09 38 30 4b 09 7b 66 33  7d 5c 2a 5c 2a 5c 2a 5c  |.80K.{f3}\*\*\*\|
000016e0  2a 2d 7b 66 7d 0a 31 35  09 38 30 d7 33 32 09 09  |*-{f}.15.80.32..|
000016f0  36 34 30 d7 32 35 36 09  09 32 35 36 09 31 36 30  |640.256..256.160|
00001700  4b 09 7b 66 33 7d 5c 2a  5c 2a 5c 2a 5c 2a 2d 7b  |K.{f3}\*\*\*\*-{|
00001710  66 7d 0a 31 36 09 31 33  32 d7 33 32 09 09 31 30  |f}.16.132.32..10|
00001720  35 36 d7 32 35 36 09 31  36 09 31 33 32 4b 09 7b  |56.256.16.132K.{|
00001730  66 33 7d 5c 2a 5c 2a 2d  2d 2d 7b 66 7d 0a 31 37  |f3}\*\*---{f}.17|
00001740  09 31 33 32 d7 32 35 09  09 31 30 35 36 d7 32 35  |.132.25..1056.25|
00001750  30 09 31 36 09 31 33 32  4b 09 7b 66 33 7d 5c 2a  |0.16.132K.{f3}\*|
00001760  5c 2a 2d 2d 2d 7b 66 7d  0a 31 38 09 38 30 d7 36  |\*---{f}.18.80.6|
00001770  34 09 09 36 34 30 d7 35  31 32 09 09 32 09 34 30  |4..640.512..2.40|
00001780  4b 09 7b 66 33 7d 2d 5c  2a 2d 2d 2d 7b 66 7d 0a  |K.{f3}-\*---{f}.|
00001790  31 39 09 38 30 d7 36 34  09 09 36 34 30 d7 35 31  |19.80.64..640.51|
000017a0  32 09 09 34 09 38 30 4b  09 7b 66 33 7d 2d 5c 2a  |2..4.80K.{f3}-\*|
000017b0  2d 2d 2d 7b 66 7d 0a 32  30 09 38 30 d7 36 34 09  |---{f}.20.80.64.|
000017c0  09 36 34 30 d7 35 31 32  09 09 31 36 09 31 36 30  |.640.512..16.160|
000017d0  4b 09 7b 66 33 7d 2d 5c  2a 2d 2d 2d 7b 66 7d 0a  |K.{f3}-\*---{f}.|
000017e0  32 31 09 38 30 d7 36 34  09 09 36 34 30 d7 35 31  |21.80.64..640.51|
000017f0  32 09 09 32 35 36 09 33  32 30 4b 09 7b 66 33 7d  |2..256.320K.{f3}|
00001800  2d 5c 2a 2d 2d 2d 7b 66  7d 0a 32 32 09 36 36 d7  |-\*---{f}.22.66.|
00001810  33 36 09 09 37 36 38 d7  32 38 38 09 09 31 36 09  |36..768.288..16.|
00001820  31 30 38 4b 09 7b 66 33  7d 5c 2a 5c 2a 2d 2d 2d  |108K.{f3}\*\*---|
00001830  7b 66 7d 0a 32 33 09 31  34 34 d7 35 36 09 09 31  |{f}.23.144.56..1|
00001840  31 35 32 d7 38 39 36 09  32 09 31 32 36 4b 09 7b  |152.896.2.126K.{|
00001850  66 33 7d 2d 2d 2d 2d 5c  2a 7b 66 7d 0a 32 34 09  |f3}----\*{f}.24.|
00001860  31 33 32 d7 32 35 09 09  31 30 35 36 d7 32 35 36  |132.25..1056.256|
00001870  09 32 35 36 09 32 36 34  4b 09 7b 66 33 7d 5c 2a  |.256.264K.{f3}\*|
00001880  5c 2a 2d 2d 2d 7b 66 7d  0a 32 35 09 38 30 d7 35  |\*---{f}.25.80.5|
00001890  30 09 09 36 34 30 d7 34  38 30 09 09 32 09 33 37  |0..640.480..2.37|
000018a0  2e 35 4b 09 7b 66 33 7d  2d 5c 2a 5c 2a 5c 2a 2d  |.5K.{f3}-\*\*\*-|
000018b0  7b 66 7d 0a 32 36 09 38  30 d7 35 30 09 09 36 34  |{f}.26.80.50..64|
000018c0  30 d7 34 38 30 09 09 34  09 37 35 4b 09 7b 66 33  |0.480..4.75K.{f3|
000018d0  7d 2d 5c 2a 5c 2a 5c 2a  2d 7b 66 7d 0a 32 37 09  |}-\*\*\*-{f}.27.|
000018e0  38 30 d7 35 30 09 09 36  34 30 d7 34 38 30 09 09  |80.50..640.480..|
000018f0  31 36 09 31 35 30 4b 09  7b 66 33 7d 2d 5c 2a 5c  |16.150K.{f3}-\*\|
00001900  2a 5c 2a 2d 7b 66 7d 0a  32 38 09 38 30 d7 35 30  |*\*-{f}.28.80.50|
00001910  09 09 36 34 30 d7 34 38  30 09 09 32 35 36 09 33  |..640.480..256.3|
00001920  30 30 4b 09 7b 66 33 7d  2d 5c 2a 5c 2a 5c 2a 2d  |00K.{f3}-\*\*\*-|
00001930  7b 66 7d 0a 32 39 09 31  30 30 d7 37 35 09 09 38  |{f}.29.100.75..8|
00001940  30 30 d7 36 30 30 09 09  32 09 35 38 2e 36 4b 09  |00.600..2.58.6K.|
00001950  7b 66 33 7d 2d 5c 2a 2d  5c 2a 2d 7b 66 7d 0a 33  |{f3}-\*-\*-{f}.3|
00001960  30 09 31 30 30 d7 37 35  09 09 38 30 30 d7 36 30  |0.100.75..800.60|
00001970  30 09 09 34 09 31 31 37  2e 32 4b 09 7b 66 33 7d  |0..4.117.2K.{f3}|
00001980  2d 5c 2a 2d 5c 2a 2d 7b  66 7d 0a 33 31 09 31 30  |-\*-\*-{f}.31.10|
00001990  30 d7 37 35 09 09 38 30  30 d7 36 30 30 09 09 31  |0.75..800.600..1|
000019a0  36 09 32 33 34 2e 34 4b  09 7b 66 33 7d 2d 5c 2a  |6.234.4K.{f3}-\*|
000019b0  2d 5c 2a 2d 7b 66 7d 0a  33 32 09 0a 33 33 09 39  |-\*-{f}.32..33.9|
000019c0  36 d7 33 36 09 09 37 36  38 d7 32 38 38 09 09 32  |6.36..768.288..2|
000019d0  09 32 37 4b 09 7b 66 33  7d 5c 2a 5c 2a 2d 2d 2d  |.27K.{f3}\*\*---|
000019e0  7b 66 7d 0a 33 34 09 39  36 d7 33 36 09 09 37 36  |{f}.34.96.36..76|
000019f0  38 d7 32 38 38 09 09 34  09 35 34 4b 09 7b 66 33  |8.288..4.54K.{f3|
00001a00  7d 5c 2a 5c 2a 2d 2d 2d  7b 66 7d 0a 33 35 09 39  |}\*\*---{f}.35.9|
00001a10  36 d7 33 36 09 09 37 36  38 d7 32 38 38 09 09 31  |6.36..768.288..1|
00001a20  36 09 31 30 38 4b 09 7b  66 33 7d 5c 2a 5c 2a 2d  |6.108K.{f3}\*\*-|
00001a30  2d 2d 7b 66 7d 0a 33 36  09 39 36 d7 33 36 09 09  |--{f}.36.96.36..|
00001a40  37 36 38 d7 32 38 38 09  09 32 35 36 09 32 31 36  |768.288..256.216|
00001a50  4b 09 7b 66 33 7d 5c 2a  5c 2a 2d 2d 2d 7b 66 7d  |K.{f3}\*\*---{f}|
00001a60  0a 33 37 09 31 31 32 d7  34 34 09 09 38 39 36 d7  |.37.112.44..896.|
00001a70  33 35 32 09 09 32 09 33  38 2e 35 4b 09 7b 66 33  |352..2.38.5K.{f3|
00001a80  7d 2d 5c 2a 2d 2d 2d 7b  66 7d 0a 33 38 09 31 31  |}-\*---{f}.38.11|
00001a90  32 d7 34 34 09 09 38 39  36 d7 33 35 32 09 09 34  |2.44..896.352..4|
00001aa0  09 37 37 4b 09 7b 66 33  7d 2d 5c 2a 2d 2d 2d 7b  |.77K.{f3}-\*---{|
00001ab0  66 7d 0a 33 39 09 31 31  32 d7 34 34 09 09 38 39  |f}.39.112.44..89|
00001ac0  36 d7 33 35 32 09 09 31  36 09 31 35 34 4b 09 7b  |6.352..16.154K.{|
00001ad0  66 33 7d 2d 5c 2a 2d 2d  2d 7b 66 7d 0a 34 30 09  |f3}-\*---{f}.40.|
00001ae0  31 31 32 d7 34 34 09 09  38 39 36 d7 33 35 32 09  |112.44..896.352.|
00001af0  09 32 35 36 09 33 30 38  4b 09 7b 66 33 7d 2d 5c  |.256.308K.{f3}-\|
00001b00  2a 2d 2d 2d 7b 66 7d 0a  34 31 09 38 30 d7 34 34  |*---{f}.41.80.44|
00001b10  09 09 36 34 30 d7 33 35  32 09 09 32 09 32 37 2e  |..640.352..2.27.|
00001b20  35 4b 09 7b 66 33 7d 2d  5c 2a 5c 2a 5c 2a 2d 7b  |5K.{f3}-\*\*\*-{|
00001b30  66 7d 0a 34 32 09 38 30  d7 34 34 09 09 36 34 30  |f}.42.80.44..640|
00001b40  d7 33 35 32 09 09 34 09  35 35 4b 09 7b 66 33 7d  |.352..4.55K.{f3}|
00001b50  2d 5c 2a 5c 2a 5c 2a 2d  7b 66 7d 0a 34 33 09 38  |-\*\*\*-{f}.43.8|
00001b60  30 d7 34 34 09 09 36 34  30 d7 33 35 32 09 09 31  |0.44..640.352..1|
00001b70  36 09 31 31 30 4b 09 7b  66 33 7d 2d 5c 2a 5c 2a  |6.110K.{f3}-\*\*|
00001b80  5c 2a 2d 7b 66 7d 0a 34  34 09 38 30 d7 32 35 09  |\*-{f}.44.80.25.|
00001b90  09 36 34 30 d7 32 30 30  09 09 32 09 31 35 2e 37  |.640.200..2.15.7|
00001ba0  4b 09 7b 66 33 7d 2d 5c  2a 5c 2a 5c 2a 2d 7b 66  |K.{f3}-\*\*\*-{f|
00001bb0  7d 0a 34 35 09 38 30 d7  32 35 09 09 36 34 30 d7  |}.45.80.25..640.|
00001bc0  32 30 30 09 09 34 09 33  31 2e 33 4b 09 7b 66 33  |200..4.31.3K.{f3|
00001bd0  7d 2d 5c 2a 5c 2a 5c 2a  2d 7b 66 7d 0a 34 36 09  |}-\*\*\*-{f}.46.|
00001be0  38 30 d7 32 35 09 09 36  34 30 d7 32 30 30 09 09  |80.25..640.200..|
00001bf0  31 36 09 36 32 2e 35 4b  09 7b 66 33 7d 2d 5c 2a  |16.62.5K.{f3}-\*|
00001c00  5c 2a 5c 2a 2d 7b 66 7d  0a 23 41 6c 69 67 6e 20  |\*\*-{f}.#Align |
00001c10  52 69 67 68 74 0a 7b 66  33 7d 7c 7c 7c 7c 7c 7b  |Right.{f3}|||||{|
00001c20  66 7d 0a 27 54 56 27 2d  74 79 70 65 20 6d 6f 6e  |f}.'TV'-type mon|
00001c30  69 74 6f 72 20 7b 66 33  7d 2b 7c 7c 7c 7c 7b 66  |itor {f3}+||||{f|
00001c40  7d 0a 4d 75 6c 74 69 73  79 6e 63 20 6d 6f 6e 69  |}.Multisync moni|
00001c50  74 6f 72 20 7b 66 33 7d  2d 2b 7c 7c 7c 7b 66 7d  |tor {f3}-+|||{f}|
00001c60  0a 36 30 20 48 7a 20 56  47 41 2d 74 79 70 65 20  |.60 Hz VGA-type |
00001c70  6d 6f 6e 69 74 6f 72 20  7b 66 33 7d 2d 2d 2b 7c  |monitor {f3}--+||
00001c80  7c 7b 66 7d 0a 53 75 70  65 72 2d 56 47 41 20 6d  ||{f}.Super-VGA m|
00001c90  6f 6e 69 74 6f 72 20 7b  66 33 7d 2d 2d 2d 2b 7c  |onitor {f3}---+||
00001ca0  7b 66 7d 0a 36 31 2e 32  20 6b 48 7a 20 68 69 67  |{f}.61.2 kHz hig|
00001cb0  68 2d 72 65 73 20 6d 6f  6e 6f 63 68 72 6f 6d 65  |h-res monochrome|
00001cc0  20 6d 6f 6e 69 74 6f 72  20 7b 66 33 7d 2d 2d 2d  | monitor {f3}---|
00001cd0  2d 2b 7b 66 7d 0a 0a 23  41 6c 69 67 6e 0a 00 00  |-+{f}..#Align...|
00001ce0  44 41 54 41 93 01 00 00  56 44 55 20 32 33 0a 23  |DATA....VDU 23.#|
00001cf0  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 56 44 55  |Parent !Root.VDU|
00001d00  20 32 33 2c 3c 63 6f 6d  6d 61 6e 64 3d 3e 32 33  | 23,<command=>23|
00001d10  61 3e 2c 6e 69 6e 65 20  70 61 72 61 6d 65 74 65  |a>,nine paramete|
00001d20  72 73 0a 4d 69 73 63 65  6c 6c 61 6e 65 6f 75 73  |rs.Miscellaneous|
00001d30  20 63 6f 6d 6d 61 6e 64  73 2e 0a 54 68 6f 75 67  | commands..Thoug|
00001d40  68 20 66 65 77 20 6f 66  20 74 68 65 20 63 6f 6d  |h few of the com|
00001d50  6d 61 6e 64 73 20 75 73  65 20 61 6c 6c 20 6f 66  |mands use all of|
00001d60  20 74 68 65 20 6e 69 6e  65 20 70 61 72 61 6d 65  | the nine parame|
00001d70  74 65 72 73 2c 20 74 68  65 79 20 6d 75 73 74 20  |ters, they must |
00001d80  61 6c 77 61 79 73 20 62  65 20 70 72 65 73 65 6e  |always be presen|
00001d90  74 2e 20 49 6e 20 42 41  53 49 43 2c 20 79 6f 75  |t. In BASIC, you|
00001da0  20 63 61 6e 20 75 73 65  20 7c 20 74 6f 20 61 64  | can use | to ad|
00001db0  64 20 65 69 67 68 74 20  7a 65 72 6f 20 62 79 74  |d eight zero byt|
00001dc0  65 73 3a 0a 0a 23 74 61  62 20 41 6c 69 67 6e 20  |es:..#tab Align |
00001dd0  72 69 67 68 74 0a 56 44  55 09 32 33 2c 30 2c 31  |right.VDU.23,0,1|
00001de0  30 20 7c 0a 3d 56 44 55  09 32 33 2c 30 2c 31 30  |0 |.=VDU.23,0,10|
00001df0  2c 30 2c 30 2c 30 2c 30  2c 30 2c 30 2c 30 2c 30  |,0,0,0,0,0,0,0,0|
00001e00  0a 0a 41 6e 79 20 65 78  74 72 61 20 7a 65 72 6f  |..Any extra zero|
00001e10  20 62 79 74 65 73 20 72  65 6d 61 69 6e 69 6e 67  | bytes remaining|
00001e20  20 61 66 74 65 72 20 74  68 65 20 39 20 62 79 74  | after the 9 byt|
00001e30  65 73 20 75 73 65 64 20  62 79 20 74 68 65 20 56  |es used by the V|
00001e40  44 55 20 32 33 20 63 6f  6d 6d 61 6e 64 20 61 72  |DU 23 command ar|
00001e50  65 20 69 67 6e 6f 72 65  64 20 28 3c 56 44 55 20  |e ignored (<VDU |
00001e60  30 3d 3e 30 3e 20 69 73  20 61 20 6e 6f 2d 6f 70  |0=>0> is a no-op|
00001e70  29 2e 0a 00 44 41 54 41  c6 01 00 00 56 44 55 20  |)...DATA....VDU |
00001e80  32 33 2c 30 0a 23 50 61  72 65 6e 74 20 32 33 0a  |23,0.#Parent 23.|
00001e90  56 44 55 20 32 33 2c 30  2c 61 63 74 69 6f 6e 2c  |VDU 23,0,action,|
00001ea0  6d 6f 64 65 2c 30 2c 30  2c 30 2c 30 2c 30 2c 30  |mode,0,0,0,0,0,0|
00001eb0  0a 53 65 74 20 74 68 65  20 69 6e 74 65 72 6c 61  |.Set the interla|
00001ec0  63 65 20 61 6e 64 20 63  6f 6e 74 72 6f 6c 20 63  |ce and control c|
00001ed0  75 72 73 6f 72 20 61 70  70 65 61 72 61 6e 63 65  |ursor appearance|
00001ee0  2e 0a 0a 41 63 74 69 6f  6e 20 3d 20 38 09 53 65  |...Action = 8.Se|
00001ef0  74 20 69 6e 74 65 72 6c  61 63 65 3a 0a 09 20 09  |t interlace:.. .|
00001f00  4d 6f 64 65 20 3a 09 30  09 53 65 74 20 69 74 20  |Mode :.0.Set it |
00001f10  74 6f 20 6f 70 70 6f 73  69 74 65 20 6f 66 20 63  |to opposite of c|
00001f20  75 72 72 65 6e 74 20 2a  54 56 0a 09 20 09 20 09  |urrent *TV.. . .|
00001f30  31 09 53 65 74 20 69 74  20 74 6f 20 63 75 72 72  |1.Set it to curr|
00001f40  65 6e 74 20 2a 54 56 0a  09 20 09 20 09 26 38 30  |ent *TV.. . .&80|
00001f50  09 54 75 72 6e 20 69 6e  74 65 72 6c 61 63 65 20  |.Turn interlace |
00001f60  6f 66 66 0a 09 20 09 20  09 26 38 31 09 54 75 72  |off.. . .&81.Tur|
00001f70  6e 20 69 6e 74 65 72 6c  61 63 65 20 6f 6e 0a 0a  |n interlace on..|
00001f80  41 63 74 69 6f 6e 20 3d  20 31 30 09 53 65 74 20  |Action = 10.Set |
00001f90  73 74 61 72 74 20 6c 69  6e 65 20 66 6f 72 20 63  |start line for c|
00001fa0  75 72 73 6f 72 3a 0a 09  20 09 4d 6f 64 65 20 3a  |ursor:.. .Mode :|
00001fb0  09 62 30 2d 34 09 53 74  61 72 74 20 6c 69 6e 65  |.b0-4.Start line|
00001fc0  20 28 30 20 69 73 20 74  6f 70 29 0a 09 20 09 20  | (0 is top).. . |
00001fd0  09 62 35 2d 36 09 30 30  20 53 74 65 61 64 79 0a  |.b5-6.00 Steady.|
00001fe0  09 20 09 20 09 30 31 20  4f 66 66 0a 09 20 09 20  |. . .01 Off.. . |
00001ff0  09 30 32 20 46 61 73 74  20 66 6c 61 73 68 0a 09  |.02 Fast flash..|
00002000  20 09 20 09 30 33 20 53  6c 6f 77 20 66 6c 61 73  | . .03 Slow flas|
00002010  68 0a 0a 41 63 74 69 6f  6e 20 3d 20 31 31 09 45  |h..Action = 11.E|
00002020  6e 64 20 6c 69 6e 65 20  66 6f 72 20 63 75 72 73  |nd line for curs|
00002030  6f 72 20 3d 20 4d 6f 64  65 0a 00 00 44 41 54 41  |or = Mode...DATA|
00002040  ef 00 00 00 56 44 55 20  32 33 2c 31 0a 23 50 61  |....VDU 23,1.#Pa|
00002050  72 65 6e 74 20 32 33 0a  56 44 55 20 32 33 2c 31  |rent 23.VDU 23,1|
00002060  2c 6d 6f 64 65 2c 30 2c  30 2c 30 2c 30 2c 30 2c  |,mode,0,0,0,0,0,|
00002070  30 2c 30 0a 0a 54 68 69  73 20 56 44 55 20 63 6f  |0,0..This VDU co|
00002080  6e 74 72 6f 6c 73 20 74  68 65 20 61 70 70 65 61  |ntrols the appea|
00002090  72 61 6e 63 65 20 6f 66  20 74 68 65 20 63 75 72  |rance of the cur|
000020a0  73 6f 72 3a 0a 20 20 30  20 48 69 64 65 20 63 75  |sor:.  0 Hide cu|
000020b0  72 73 6f 72 0a 20 20 31  20 53 68 6f 77 20 63 75  |rsor.  1 Show cu|
000020c0  72 73 6f 72 0a 20 20 32  20 53 74 65 61 64 79 20  |rsor.  2 Steady |
000020d0  63 75 72 73 6f 72 0a 20  20 33 20 46 6c 61 73 68  |cursor.  3 Flash|
000020e0  69 6e 67 20 63 6f 72 73  6f 72 0a 0a 54 68 65 20  |ing corsor..The |
000020f0  65 66 66 65 63 74 20 6f  66 20 74 68 69 73 20 56  |effect of this V|
00002100  44 55 20 69 73 20 63 61  6e 63 65 6c 6c 65 64 20  |DU is cancelled |
00002110  77 68 65 6e 20 63 75 72  73 6f 72 20 65 64 69 74  |when cursor edit|
00002120  69 6e 67 20 6f 63 63 75  72 73 2e 00 44 41 54 41  |ing occurs..DATA|
00002130  cf 00 00 00 56 44 55 20  32 33 2c 31 37 2c 78 0a  |....VDU 23,17,x.|
00002140  23 50 61 72 65 6e 74 20  32 33 0a 30 2d 33 09 3c  |#Parent 23.0-3.<|
00002150  53 65 74 20 74 69 6e 74  3d 3e 32 33 2c 31 37 2c  |Set tint=>23,17,|
00002160  30 3e 0a 34 09 3c 43 68  6f 6f 73 65 20 63 6f 6c  |0>.4.<Choose col|
00002170  6f 75 72 2d 70 61 74 74  65 72 6e 20 74 79 70 65  |our-pattern type|
00002180  3d 3e 32 33 2c 31 37 2c  34 3e 0a 35 09 53 77 61  |=>23,17,4>.5.Swa|
00002190  70 20 74 65 78 74 20 66  6f 72 65 67 72 6f 75 6e  |p text foregroun|
000021a0  64 20 61 6e 64 20 62 61  63 6b 67 72 6f 75 6e 64  |d and background|
000021b0  20 63 6f 6c 6f 75 72 0a  36 09 3c 53 65 74 20 45  | colour.6.<Set E|
000021c0  43 46 20 6f 72 69 67 69  6e 3d 3e 32 33 2c 31 37  |CF origin=>23,17|
000021d0  2c 36 3e 0a 37 09 3c 53  65 74 20 63 68 61 72 20  |,6>.7.<Set char |
000021e0  73 69 7a 65 20 61 6e 64  20 73 70 61 63 69 6e 67  |size and spacing|
000021f0  3d 3e 32 33 2c 31 37 2c  37 3e 0a 00 44 41 54 41  |=>23,17,7>..DATA|
00002200  73 01 00 00 56 44 55 20  32 33 2c 31 37 2c 30 2d  |s...VDU 23,17,0-|
00002210  33 0a 23 50 61 72 65 6e  74 20 32 33 2c 31 37 0a  |3.#Parent 23,17.|
00002220  54 68 69 73 20 56 44 55  20 69 73 20 75 73 65 64  |This VDU is used|
00002230  20 74 6f 20 73 65 74 20  74 68 65 20 74 69 6e 74  | to set the tint|
00002240  20 66 6f 72 20 61 20 63  6f 6c 6f 75 72 20 69 6e  | for a colour in|
00002250  20 61 20 32 35 36 2d 63  6f 6c 6f 75 72 20 6d 6f  | a 256-colour mo|
00002260  64 65 3a 0a 0a 23 57 72  61 70 20 4f 66 66 0a 56  |de:..#Wrap Off.V|
00002270  44 55 20 32 33 2c 31 37  2c 30 2c 74 69 6e 74 2c  |DU 23,17,0,tint,|
00002280  30 2c 30 2c 30 2c 30 2c  30 2c 30 2c 30 09 54 65  |0,0,0,0,0,0,0.Te|
00002290  78 74 20 66 6f 72 65 67  72 6f 75 6e 64 0a 56 44  |xt foreground.VD|
000022a0  55 20 32 33 2c 31 37 2c  31 2c 74 69 6e 74 2c 30  |U 23,17,1,tint,0|
000022b0  2c 30 2c 30 2c 30 2c 30  2c 30 2c 30 09 54 65 78  |,0,0,0,0,0,0.Tex|
000022c0  74 20 62 61 63 6b 67 72  6f 75 6e 64 0a 56 44 55  |t background.VDU|
000022d0  20 32 33 2c 31 37 2c 32  2c 74 69 6e 74 2c 30 2c  | 23,17,2,tint,0,|
000022e0  30 2c 30 2c 30 2c 30 2c  30 2c 30 09 47 72 61 70  |0,0,0,0,0,0.Grap|
000022f0  68 69 63 73 20 66 6f 72  65 67 72 6f 75 6e 64 0a  |hics foreground.|
00002300  56 44 55 20 32 33 2c 31  37 2c 33 2c 74 69 6e 74  |VDU 23,17,3,tint|
00002310  2c 30 2c 30 2c 30 2c 30  2c 30 2c 30 2c 30 09 47  |,0,0,0,0,0,0,0.G|
00002320  72 61 70 68 69 63 73 20  62 61 63 6b 67 72 6f 75  |raphics backgrou|
00002330  6e 64 0a 23 57 72 61 70  20 4f 6e 0a 0a 54 69 6e  |nd.#Wrap On..Tin|
00002340  74 20 69 73 20 26 30 30  2c 26 34 30 2c 26 38 30  |t is &00,&40,&80|
00002350  20 6f 72 20 26 43 30 20  28 75 73 65 73 20 6f 6e  | or &C0 (uses on|
00002360  6c 79 20 32 20 74 6f 70  20 62 69 74 73 29 2e 00  |ly 2 top bits)..|
00002370  44 41 54 41 fd 00 00 00  56 44 55 20 32 33 2c 31  |DATA....VDU 23,1|
00002380  37 2c 34 0a 23 50 61 72  65 6e 74 20 32 33 2c 31  |7,4.#Parent 23,1|
00002390  37 0a 23 57 72 61 70 20  4f 66 66 0a 56 44 55 20  |7.#Wrap Off.VDU |
000023a0  32 33 2c 31 37 2c 34 2c  30 2c 30 2c 30 2c 30 2c  |23,17,4,0,0,0,0,|
000023b0  30 2c 30 2c 30 20 3a 09  55 73 65 20 61 6e 63 69  |0,0,0 :.Use anci|
000023c0  65 6e 74 20 70 61 74 74  65 72 6e 0a 56 44 55 20  |ent pattern.VDU |
000023d0  32 33 2c 31 37 2c 34 2c  31 2c 30 2c 30 2c 30 2c  |23,17,4,1,0,0,0,|
000023e0  30 2c 30 2c 30 20 3a 09  55 73 65 20 6e 65 77 20  |0,0,0 :.Use new |
000023f0  26 20 69 6d 70 72 6f 76  65 64 0a 0a 23 57 72 61  |& improved..#Wra|
00002400  70 20 4f 6e 0a 54 68 69  73 20 56 44 55 20 63 68  |p On.This VDU ch|
00002410  6f 6f 73 65 73 20 77 68  69 63 68 20 73 65 74 20  |ooses which set |
00002420  6f 66 20 63 6f 6c 6f 75  72 20 70 61 74 74 65 72  |of colour patter|
00002430  6e 73 20 61 72 65 20 75  73 65 64 20 74 6f 20 69  |ns are used to i|
00002440  6e 74 65 72 70 72 65 74  20 73 75 62 73 65 71 75  |nterpret subsequ|
00002450  65 6e 74 20 3c 56 44 55  20 32 33 2c 32 2d 35 3d  |ent <VDU 23,2-5=|
00002460  3e 32 33 2c 32 3e 20 63  61 6c 6c 73 2e 00 00 00  |>23,2> calls....|
00002470  44 41 54 41 c3 00 00 00  56 44 55 20 32 33 2c 31  |DATA....VDU 23,1|
00002480  37 2c 36 0a 23 50 61 72  65 6e 74 20 32 33 2c 31  |7,6.#Parent 23,1|
00002490  37 0a 32 33 2c 31 37 2c  36 2c 78 3b 79 3b 30 2c  |7.23,17,6,x;y;0,|
000024a0  30 2c 30 0a 0a 54 68 69  73 20 56 44 55 20 73 65  |0,0..This VDU se|
000024b0  74 73 20 74 68 65 20 70  6f 69 6e 74 20 77 69 74  |ts the point wit|
000024c0  68 20 77 68 69 63 68 20  74 6f 20 61 6c 69 67 6e  |h which to align|
000024d0  20 74 68 65 20 62 6f 74  74 6f 6d 20 6c 65 66 74  | the bottom left|
000024e0  20 6f 66 20 74 68 65 20  45 43 46 20 70 61 74 74  | of the ECF patt|
000024f0  65 72 6e 20 77 69 74 68  2e 0a 0a 59 6f 75 20 63  |ern with...You c|
00002500  61 6e 20 61 6c 73 6f 20  75 73 65 20 3c 4f 53 5f  |an also use <OS_|
00002510  53 65 74 45 43 46 4f 72  69 67 69 6e 3d 3e 4f 53  |SetECFOrigin=>OS|
00002520  3a 4f 53 5f 53 65 74 45  43 46 4f 72 69 67 69 6e  |:OS_SetECFOrigin|
00002530  3e 2e 0a 00 44 41 54 41  09 01 00 00 56 44 55 20  |>...DATA....VDU |
00002540  32 33 2c 31 37 2c 37 0a  23 50 61 72 65 6e 74 20  |23,17,7.#Parent |
00002550  32 33 2c 31 37 0a 56 44  55 20 32 33 2c 31 37 2c  |23,17.VDU 23,17,|
00002560  37 2c 66 6c 61 67 73 2c  78 3b 79 3b 0a 0a 42 69  |7,flags,x;y;..Bi|
00002570  74 09 4d 65 61 6e 69 6e  67 20 69 66 20 73 65 74  |t.Meaning if set|
00002580  0a 23 4c 69 6e 65 0a 30  09 28 75 6e 69 6d 70 6c  |.#Line.0.(unimpl|
00002590  65 6d 65 6e 74 65 64 20  2d 20 77 61 73 20 74 6f  |emented - was to|
000025a0  20 73 65 74 20 3c 56 44  55 20 34 3d 3e 34 3e 20  | set <VDU 4=>4> |
000025b0  63 68 61 72 61 63 74 65  72 20 73 69 7a 65 29 0a  |character size).|
000025c0  31 09 53 65 74 20 73 69  7a 65 20 6f 66 20 3c 56  |1.Set size of <V|
000025d0  44 55 20 35 3d 3e 35 3e  20 63 68 61 72 61 63 74  |DU 5=>5> charact|
000025e0  65 72 73 2e 20 28 73 69  7a 65 73 20 38 d7 38 20  |ers. (sizes 8.8 |
000025f0  61 6e 64 20 38 d7 31 36  20 61 72 65 20 66 61 73  |and 8.16 are fas|
00002600  74 2c 20 6f 74 68 65 72  73 20 73 6c 6f 77 29 0a  |t, others slow).|
00002610  32 09 53 65 74 20 73 70  61 63 69 6e 67 20 62 65  |2.Set spacing be|
00002620  74 77 65 65 6e 20 3c 56  44 55 20 35 3d 3e 35 3e  |tween <VDU 5=>5>|
00002630  20 63 68 61 72 61 63 74  65 72 73 2e 0a 00 00 00  | characters.....|
00002640  44 41 54 41 fa 01 00 00  56 44 55 20 32 33 2c 32  |DATA....VDU 23,2|
00002650  2d 35 0a 23 50 61 72 65  6e 74 20 32 33 61 0a 56  |-5.#Parent 23a.V|
00002660  44 55 20 32 33 2c 7b 2f  7d 6e 72 7b 2f 7d 2c 65  |DU 23,{/}nr{/},e|
00002670  69 67 68 74 20 63 6f 6c  6f 75 72 20 62 79 74 65  |ight colour byte|
00002680  73 2e 0a 0a 54 68 69 73  20 56 44 55 20 64 65 66  |s...This VDU def|
00002690  69 6e 65 73 20 6f 6e 65  20 6f 66 20 74 68 65 20  |ines one of the |
000026a0  45 43 46 20 70 61 74 74  65 72 6e 73 3b 20 7b 2f  |ECF patterns; {/|
000026b0  7d 6e 72 7b 2f 7d 20 69  73 20 32 2d 35 20 66 6f  |}nr{/} is 2-5 fo|
000026c0  72 20 70 61 74 74 65 72  6e 20 31 2d 34 2e 0a 45  |r pattern 1-4..E|
000026d0  61 63 68 20 6f 66 20 74  68 65 20 65 69 67 68 74  |ach of the eight|
000026e0  20 63 6f 6c 6f 75 72 20  62 79 74 65 73 20 64 65  | colour bytes de|
000026f0  66 69 6e 65 20 6f 6e 65  20 72 6f 77 20 6f 66 20  |fine one row of |
00002700  74 68 65 20 45 43 46 20  70 61 74 74 65 72 6e 2c  |the ECF pattern,|
00002710  20 61 6e 64 20 74 68 65  72 65 20 61 72 65 20 74  | and there are t|
00002720  77 6f 20 6d 6f 64 65 73  3a 20 61 20 42 42 43 2d  |wo modes: a BBC-|
00002730  6d 6f 64 65 2c 20 61 6e  64 20 61 6e 20 41 72 63  |mode, and an Arc|
00002740  68 69 6d 65 64 65 73 20  6d 6f 64 65 2e 20 0a 54  |himedes mode. .T|
00002750  6f 20 63 68 6f 6f 73 65  20 6d 6f 64 65 2c 20 75  |o choose mode, u|
00002760  73 65 20 3c 56 44 55 20  32 33 2c 31 37 2c 34 3d  |se <VDU 23,17,4=|
00002770  3e 32 33 2c 31 37 2c 34  3e 2e 0a 0a 42 69 74 20  |>23,17,4>...Bit |
00002780  30 2d 37 20 69 6e 20 65  61 63 68 20 63 6f 6c 6f  |0-7 in each colo|
00002790  75 72 20 62 79 74 65 2c  69 73 20 75 73 65 64 20  |ur byte,is used |
000027a0  61 73 20 66 6f 6c 6c 6f  77 73 3a 0a 0a 42 50 50  |as follows:..BPP|
000027b0  09 42 42 43 20 70 69 78  65 6c 73 09 41 72 63 68  |.BBC pixels.Arch|
000027c0  69 6d 65 64 65 73 20 70  69 78 65 6c 73 0a 23 4c  |imedes pixels.#L|
000027d0  69 6e 65 0a 31 09 37 2c  36 2c 35 2c 34 2c 33 2c  |ine.1.7,6,5,4,3,|
000027e0  32 2c 31 2c 30 09 30 2c  31 2c 32 2c 33 2c 34 2c  |2,1,0.0,1,2,3,4,|
000027f0  35 2c 36 2c 37 0a 32 09  37 33 2c 36 32 2c 35 31  |5,6,7.2.73,62,51|
00002800  2c 34 30 09 31 30 2c 33  32 2c 35 34 2c 37 36 0a  |,40.10,32,54,76.|
00002810  34 09 37 35 33 31 2c 36  34 32 30 09 33 32 31 30  |4.7531,6420.3210|
00002820  2c 37 36 35 34 0a 38 09  37 36 35 34 33 32 31 30  |,7654.8.76543210|
00002830  09 37 36 35 34 33 32 31  30 0a 00 00 44 41 54 41  |.76543210...DATA|
00002840  2b 01 00 00 56 44 55 20  32 33 2c 36 0a 23 50 61  |+...VDU 23,6.#Pa|
00002850  72 65 6e 74 20 32 33 0a  56 44 55 20 32 33 2c 36  |rent 23.VDU 23,6|
00002860  2c 20 38 20 70 61 74 74  65 72 6e 20 62 79 74 65  |, 8 pattern byte|
00002870  73 0a 0a 54 68 69 73 20  56 44 55 20 73 65 74 73  |s..This VDU sets|
00002880  20 74 68 65 20 64 6f 74  2d 64 61 73 68 20 6c 69  | the dot-dash li|
00002890  6e 65 20 73 74 79 6c 65  20 75 73 65 64 20 62 79  |ne style used by|
000028a0  20 64 6f 74 74 65 64 20  3c 70 6c 6f 74 3d 3e 4f  | dotted <plot=>O|
000028b0  53 3a 4f 53 5f 50 6c 6f  74 3e 20 63 6f 6d 6d 61  |S:OS_Plot> comma|
000028c0  6e 64 73 2e 20 54 68 65  20 6d 6f 73 74 20 73 69  |nds. The most si|
000028d0  67 6e 69 66 69 63 61 6e  74 20 62 69 74 20 69 73  |gnificant bit is|
000028e0  20 75 73 65 64 20 66 69  72 73 74 3b 20 74 68 65  | used first; the|
000028f0  20 64 65 66 61 75 6c 74  20 69 73 20 26 41 41 41  | default is &AAA|
00002900  41 41 41 41 41 2e 20 54  68 65 20 6c 65 6e 67 74  |AAAAA. The lengt|
00002910  68 20 6f 66 20 74 68 65  20 64 61 73 68 20 70 61  |h of the dash pa|
00002920  74 74 65 72 6e 20 75 73  65 64 20 69 73 20 73 65  |ttern used is se|
00002930  74 20 77 69 74 68 20 3c  4f 53 5f 42 79 74 65 20  |t with <OS_Byte |
00002940  31 36 33 3d 3e 4f 53 3a  4f 53 5f 42 79 74 65 31  |163=>OS:OS_Byte1|
00002950  36 33 3e 2c 20 74 68 65  20 64 65 66 61 75 6c 74  |63>, the default|
00002960  20 69 73 20 38 2e 0a 00  44 41 54 41 d7 02 00 00  | is 8...DATA....|
00002970  56 44 55 20 32 33 20 63  6f 6d 6d 61 6e 64 73 3a  |VDU 23 commands:|
00002980  0a 23 50 61 72 65 6e 74  20 21 52 6f 6f 74 0a 30  |.#Parent !Root.0|
00002990  09 09 3c 53 65 74 20 69  6e 74 65 72 6c 61 63 65  |..<Set interlace|
000029a0  20 26 20 63 75 72 73 6f  72 20 61 70 70 65 61 72  | & cursor appear|
000029b0  61 6e 63 65 3d 3e 32 33  2c 30 3e 0a 31 09 09 3c  |ance=>23,0>.1..<|
000029c0  43 6f 6e 74 72 6f 6c 20  63 75 72 73 6f 72 20 61  |Control cursor a|
000029d0  70 70 65 61 72 61 6e 63  65 3d 3e 32 33 2c 31 3e  |ppearance=>23,1>|
000029e0  0a 32 2d 35 09 09 3c 44  65 66 69 6e 65 20 45 43  |.2-5..<Define EC|
000029f0  46 20 70 61 74 74 65 72  6e 20 26 20 63 6f 6c 6f  |F pattern & colo|
00002a00  75 72 73 3d 3e 32 33 2c  32 3e 0a 36 09 09 3c 53  |urs=>23,2>.6..<S|
00002a10  65 74 20 64 6f 74 2d 64  61 73 68 20 6c 69 6e 65  |et dot-dash line|
00002a20  20 73 74 79 6c 65 3d 3e  32 33 2c 36 3e 0a 37 09  | style=>23,6>.7.|
00002a30  09 3c 53 63 72 6f 6c 6c  20 74 65 78 74 20 77 69  |.<Scroll text wi|
00002a40  6e 64 6f 77 20 6f 72 20  73 63 72 65 65 6e 3d 3e  |ndow or screen=>|
00002a50  32 33 2c 37 3e 0a 38 09  09 3c 43 6c 65 61 72 20  |23,7>.8..<Clear |
00002a60  62 6c 6f 63 6b 20 6f 66  20 74 65 78 74 20 77 69  |block of text wi|
00002a70  6e 64 6f 77 3d 3e 32 33  2c 38 3e 0a 39 09 09 3c  |ndow=>23,8>.9..<|
00002a80  53 65 74 20 74 69 6d 65  20 66 6f 72 20 31 73 74  |Set time for 1st|
00002a90  20 66 6c 61 73 68 20 63  6f 6c 6f 75 72 3d 3e 32  | flash colour=>2|
00002aa0  33 2c 39 3e 0a 31 30 09  09 3c 53 65 74 20 74 69  |3,9>.10..<Set ti|
00002ab0  6d 65 20 66 6f 72 20 32  6e 64 20 66 6c 61 73 68  |me for 2nd flash|
00002ac0  20 63 6f 6c 6f 75 72 3d  3e 32 33 2c 31 30 3e 0a  | colour=>23,10>.|
00002ad0  31 31 09 09 3c 53 65 74  20 64 65 66 61 75 6c 74  |11..<Set default|
00002ae0  20 70 61 74 74 65 72 6e  3d 3e 32 33 2c 31 31 3e  | pattern=>23,11>|
00002af0  0a 31 32 2d 31 35 09 09  3c 44 65 66 69 6e 65 20  |.12-15..<Define |
00002b00  73 69 6d 70 6c 65 20 45  43 46 20 26 20 63 6f 6c  |simple ECF & col|
00002b10  6f 75 72 73 3d 3e 32 33  2c 31 32 3e 0a 31 36 09  |ours=>23,12>.16.|
00002b20  09 3c 43 6f 6e 74 72 6f  6c 20 63 75 72 73 6f 72  |.<Control cursor|
00002b30  20 6d 6f 76 65 6d 65 6e  74 20 61 66 74 65 72 20  | movement after |
00002b40  70 72 69 6e 74 3d 3e 32  33 2c 31 36 3e 0a 31 37  |print=>23,16>.17|
00002b50  09 09 3c 4d 69 73 63 65  6c 6c 61 6e 65 6f 75 73  |..<Miscellaneous|
00002b60  20 6f 70 65 72 61 74 69  6f 6e 73 3d 3e 32 33 2c  | operations=>23,|
00002b70  31 37 3e 0a 31 38 2d 32  35 2c 32 38 2d 33 31 09  |17>.18-25,28-31.|
00002b80  3c 55 6e 6b 6e 6f 77 6e  20 56 44 55 32 33 20 76  |<Unknown VDU23 v|
00002b90  65 63 74 6f 72 20 63 61  6c 6c 65 64 3d 3e 4f 53  |ector called=>OS|
00002ba0  3a 76 65 63 74 6f 72 5f  75 6b 76 64 75 32 33 76  |:vector_ukvdu23v|
00002bb0  3e 0a 33 32 2d 32 35 35  09 09 3c 52 65 64 65 66  |>.32-255..<Redef|
00002bc0  69 6e 65 20 61 20 63 68  61 72 61 63 74 65 72 3d  |ine a character=|
00002bd0  3e 32 33 2c 33 32 2d 32  35 35 3e 0a 0a 23 57 72  |>23,32-255>..#Wr|
00002be0  61 70 0a 54 68 65 20 63  75 72 72 65 6e 74 20 73  |ap.The current s|
00002bf0  65 74 74 69 6e 67 73 20  64 65 66 69 6e 65 64 20  |ettings defined |
00002c00  62 79 20 32 2d 36 20 61  6e 64 20 33 32 2d 32 35  |by 2-6 and 32-25|
00002c10  35 20 63 61 6e 20 62 65  20 72 65 61 64 20 77 69  |5 can be read wi|
00002c20  74 68 20 3c 4f 53 5f 57  6f 72 64 20 31 30 3d 3e  |th <OS_Word 10=>|
00002c30  4f 53 3a 4f 53 5f 57 6f  72 64 31 30 3e 2e 0a 00  |OS:OS_Word10>...|
00002c40  44 41 54 41 d4 00 00 00  56 44 55 20 32 34 0a 23  |DATA....VDU 24.#|
00002c50  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 7b 41 4c  |Parent !Root.{AL|
00002c60  49 47 4e 20 52 49 47 48  54 7d 28 72 78 2c 74 79  |IGN RIGHT}(rx,ty|
00002c70  29 7b 41 4c 49 47 4e 20  43 45 4e 54 52 45 7d 0a  |){ALIGN CENTRE}.|
00002c80  0a 20 20 44 65 66 69 6e  65 20 67 72 61 70 68 69  |.  Define graphi|
00002c90  63 73 20 77 69 6e 64 6f  77 3a 20 20 0a 20 20 56  |cs window:  .  V|
00002ca0  44 55 20 32 34 2c 6c 78  3b 62 79 3b 72 78 3b 74  |DU 24,lx;by;rx;t|
00002cb0  79 3b 0a 0a 20 20 43 6f  6f 72 64 69 6e 61 74 65  |y;..  Coordinate|
00002cc0  73 20 61 72 65 20 72 65  6c 61 74 69 76 65 20 74  |s are relative t|
00002cd0  6f 20 74 68 65 20 63 75  72 72 65 6e 74 20 67 72  |o the current gr|
00002ce0  61 70 68 69 63 73 20 6f  72 69 67 69 6e 20 61 6e  |aphics origin an|
00002cf0  64 20 2a 69 6e 63 6c 75  73 69 76 65 2a 2e 0a 0a  |d *inclusive*...|
00002d00  7b 41 4c 49 47 4e 20 4c  45 46 54 7d 28 6c 78 2c  |{ALIGN LEFT}(lx,|
00002d10  62 79 29 0a 44 41 54 41  b0 00 00 00 56 44 55 20  |by).DATA....VDU |
00002d20  32 35 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |25.#Parent !Root|
00002d30  0a 56 44 55 20 32 35 2c  3c 63 6f 6d 6d 61 6e 64  |.VDU 25,<command|
00002d40  3d 3e 4f 53 3a 4f 53 5f  50 6c 6f 74 49 6e 64 65  |=>OS:OS_PlotInde|
00002d50  78 3e 2c 78 3b 79 3b 0a  54 68 69 73 20 56 44 55  |x>,x;y;.This VDU|
00002d60  20 65 78 65 63 75 74 65  73 20 61 20 70 6c 6f 74  | executes a plot|
00002d70  20 63 6f 6d 6d 61 6e 64  2e 20 49 74 20 69 73 20  | command. It is |
00002d80  66 61 73 74 65 72 20 28  61 6e 64 20 73 69 6d 70  |faster (and simp|
00002d90  6c 65 72 29 20 74 6f 20  75 73 65 20 74 68 65 20  |ler) to use the |
00002da0  53 57 49 20 3c 4f 53 5f  50 6c 6f 74 3d 3e 4f 53  |SWI <OS_Plot=>OS|
00002db0  3a 4f 53 5f 50 6c 6f 74  3e 20 64 69 72 65 63 74  |:OS_Plot> direct|
00002dc0  6c 79 2e 0a 44 41 54 41  83 00 00 00 56 44 55 20  |ly..DATA....VDU |
00002dd0  32 38 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |28.#Parent !Root|
00002de0  0a 7b 41 6c 69 67 6e 20  72 69 67 68 74 7d 28 72  |.{Align right}(r|
00002df0  78 2c 74 79 29 7b 61 6c  69 67 6e 20 63 65 6e 74  |x,ty){align cent|
00002e00  72 65 7d 0a 0a 20 20 44  65 66 69 6e 65 20 74 65  |re}..  Define te|
00002e10  78 74 20 77 69 6e 64 6f  77 3a 20 20 0a 20 20 56  |xt window:  .  V|
00002e20  44 55 20 32 38 2c 6c 78  2c 62 79 2c 72 78 2c 74  |DU 28,lx,by,rx,t|
00002e30  79 0a 0a 7b 61 6c 69 67  6e 20 6c 65 66 74 7d 28  |y..{align left}(|
00002e40  6c 78 2c 62 79 29 0a 00  44 41 54 41 b9 00 00 00  |lx,by)..DATA....|
00002e50  56 44 55 20 32 39 0a 23  50 61 72 65 6e 74 20 21  |VDU 29.#Parent !|
00002e60  52 6f 6f 74 0a 56 44 55  20 32 39 2c 78 3b 79 3b  |Root.VDU 29,x;y;|
00002e70  0a 54 68 69 73 20 56 44  55 20 64 65 66 69 6e 65  |.This VDU define|
00002e80  73 20 77 68 65 72 65 20  6f 6e 20 73 63 72 65 65  |s where on scree|
00002e90  6e 20 30 2c 30 20 69 73  2e 20 41 6c 6c 20 67 72  |n 0,0 is. All gr|
00002ea0  61 70 68 69 63 73 20 6f  70 65 72 61 74 69 6f 6e  |aphics operation|
00002eb0  73 20 61 72 65 20 72 65  6c 61 74 69 76 65 20 74  |s are relative t|
00002ec0  6f 20 74 68 69 73 20 70  6f 69 6e 74 2e 20 47 72  |o this point. Gr|
00002ed0  61 70 68 69 63 73 20 77  69 6e 64 6f 77 20 72 65  |aphics window re|
00002ee0  6d 61 69 6e 73 20 61 74  20 73 61 6d 65 20 70 6f  |mains at same po|
00002ef0  73 69 74 69 6f 6e 20 6f  6e 20 73 63 72 65 65 6e  |sition on screen|
00002f00  2e 00 00 00 44 41 54 41  6d 02 00 00 56 44 55 20  |....DATAm...VDU |
00002f10  33 31 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |31.#Parent !Root|
00002f20  0a 56 44 55 20 33 31 2c  7b 2f 7d 78 7b 2f 7d 2c  |.VDU 31,{/}x{/},|
00002f30  7b 2f 7d 79 7b 2f 7d 0a  54 68 69 73 20 56 44 55  |{/}y{/}.This VDU|
00002f40  20 6d 6f 76 65 73 20 74  68 65 20 74 65 78 74 20  | moves the text |
00002f50  63 75 72 73 6f 72 20 74  6f 20 28 7b 2f 7d 78 7b  |cursor to ({/}x{|
00002f60  2f 7d 2c 7b 2f 7d 79 7b  2f 7d 29 2e 20 28 30 2c  |/},{/}y{/}). (0,|
00002f70  30 29 20 69 73 20 74 6f  70 20 6c 65 66 74 20 6f  |0) is top left o|
00002f80  66 20 63 75 72 72 65 6e  74 20 74 65 78 74 20 77  |f current text w|
00002f90  69 6e 64 6f 77 2e 20 49  66 20 28 7b 2f 7d 78 7b  |indow. If ({/}x{|
00002fa0  2f 7d 2c 7b 2f 7d 79 7b  2f 7d 29 20 69 73 20 6f  |/},{/}y{/}) is o|
00002fb0  75 74 73 69 64 65 20 74  65 78 74 20 77 69 6e 64  |utside text wind|
00002fc0  6f 77 2c 20 6e 6f 74 68  69 6e 67 20 68 61 70 70  |ow, nothing happ|
00002fd0  65 6e 73 2c 20 75 6e 6c  65 73 73 20 3c 73 63 72  |ens, unless <scr|
00002fe0  6f 6c 6c 20 70 72 6f 74  65 63 74 69 6f 6e 3d 3e  |oll protection=>|
00002ff0  53 63 72 6f 6c 6c 5f 50  72 6f 74 65 63 74 69 6f  |Scroll_Protectio|
00003000  6e 3e 20 69 73 20 65 6e  61 62 6c 65 64 20 61 6e  |n> is enabled an|
00003010  64 20 7b 2f 7d 78 7b 2f  7d 20 3d 20 6d 61 78 78  |d {/}x{/} = maxx|
00003020  2b 31 20 20 3d 3e 20 63  75 72 73 6f 72 20 69 73  |+1  => cursor is|
00003030  20 6d 6f 76 65 64 20 74  6f 20 28 7b 2f 7d 78 7b  | moved to ({/}x{|
00003040  2f 7d 2d 31 2c 7b 2f 7d  79 7b 2f 7d 29 2c 20 61  |/}-1,{/}y{/}), a|
00003050  6e 64 20 61 20 70 65 6e  64 69 6e 67 20 6e 65 77  |nd a pending new|
00003060  6c 69 6e 65 20 69 73 20  67 65 6e 65 72 61 74 65  |line is generate|
00003070  64 2e 0a 0a 49 6e 20 3c  56 44 55 20 35 3d 3e 35  |d...In <VDU 5=>5|
00003080  3e 20 6d 6f 64 65 20 74  68 65 20 67 72 61 70 68  |> mode the graph|
00003090  69 63 73 20 63 75 72 73  6f 72 20 69 73 20 6d 6f  |ics cursor is mo|
000030a0  76 65 64 20 74 6f 20 28  78 20 63 68 61 72 20 73  |ved to (x char s|
000030b0  70 61 63 69 6e 67 20 2a  20 7b 2f 7d 78 7b 2f 7d  |pacing * {/}x{/}|
000030c0  2c 20 79 20 63 68 61 72  20 73 70 61 63 69 6e 67  |, y char spacing|
000030d0  20 2a 20 7b 2f 7d 79 7b  2f 7d 29 2c 20 77 68 69  | * {/}y{/}), whi|
000030e0  63 68 20 63 61 6e 20 72  65 73 75 6c 74 20 69 6e  |ch can result in|
000030f0  20 74 68 65 20 63 75 72  73 6f 72 20 62 65 69 6e  | the cursor bein|
00003100  67 20 6d 6f 76 65 64 20  6f 75 74 73 69 64 65 20  |g moved outside |
00003110  74 68 65 20 67 72 61 70  68 69 63 73 20 77 69 6e  |the graphics win|
00003120  64 6f 77 2e 0a 0a 43 75  72 72 65 6e 74 20 74 65  |dow...Current te|
00003130  78 74 20 63 75 72 73 6f  72 20 70 6f 73 69 74 69  |xt cursor positi|
00003140  6f 6e 20 63 61 6e 20 62  65 20 72 65 61 64 20 77  |on can be read w|
00003150  69 74 68 20 3c 4f 53 5f  42 79 74 65 20 31 33 34  |ith <OS_Byte 134|
00003160  3d 3e 4f 53 3a 4f 53 5f  42 79 74 65 31 33 34 3e  |=>OS:OS_Byte134>|
00003170  0a 00 00 00 44 41 54 41  61 01 00 00 56 44 55 20  |....DATAa...VDU |
00003180  32 33 2c 33 32 2d 32 35  35 0a 23 50 61 72 65 6e  |23,32-255.#Paren|
00003190  74 20 32 33 0a 56 44 55  20 32 33 2c 7b 2f 7d 6d  |t 23.VDU 23,{/}m|
000031a0  7b 2f 7d 2c 20 38 20 62  79 74 65 73 20 6f 66 20  |{/}, 8 bytes of |
000031b0  72 6f 77 20 64 65 66 69  6e 69 74 69 6f 6e 73 0a  |row definitions.|
000031c0  0a 54 68 69 73 20 56 44  55 20 72 65 64 65 66 69  |.This VDU redefi|
000031d0  6e 65 73 20 63 68 61 72  61 63 74 65 72 20 2f 6d  |nes character /m|
000031e0  2f 20 69 6e 20 74 68 65  20 73 79 73 74 65 6d 20  |/ in the system |
000031f0  66 6f 6e 74 2e 20 54 68  65 20 72 6f 77 73 20 61  |font. The rows a|
00003200  72 65 20 67 69 76 65 6e  20 62 79 20 74 68 65 20  |re given by the |
00003210  38 20 62 79 74 65 73 20  66 72 6f 6d 20 74 6f 70  |8 bytes from top|
00003220  20 74 6f 20 62 6f 74 74  6f 6d 2e 20 54 68 65 20  | to bottom. The |
00003230  70 61 74 74 65 72 6e 20  66 6f 72 20 61 20 63 68  |pattern for a ch|
00003240  61 72 61 63 74 65 72 20  63 61 6e 20 62 65 20 72  |aracter can be r|
00003250  65 61 64 20 77 69 74 68  20 3c 4f 53 5f 57 6f 72  |ead with <OS_Wor|
00003260  64 20 31 30 3d 3e 4f 53  3a 4f 53 5f 57 6f 72 64  |d 10=>OS:OS_Word|
00003270  31 30 3e 2e 0a 0a 4e 6f  74 65 20 74 68 61 74 20  |10>...Note that |
00003280  61 6c 74 68 6f 75 67 68  20 74 68 65 20 64 65 6c  |although the del|
00003290  65 74 65 20 63 68 61 72  61 63 74 65 72 20 28 5c  |ete character (\|
000032a0  3c 31 32 37 3e 29 20 63  61 6e 20 62 65 20 72 65  |<127>) can be re|
000032b0  64 65 66 69 6e 65 64 2c  20 69 74 20 73 74 69 6c  |defined, it stil|
000032c0  6c 20 63 61 6e 6e 6f 74  20 62 65 20 70 72 69 6e  |l cannot be prin|
000032d0  74 65 64 2e 0a 00 00 00  44 41 54 41 0f 02 00 00  |ted.....DATA....|
000032e0  56 44 55 20 31 34 20 2f  20 56 44 55 20 31 35 0a  |VDU 14 / VDU 15.|
000032f0  23 50 61 72 65 6e 74 20  21 52 6f 6f 74 0a 56 44  |#Parent !Root.VD|
00003300  55 20 31 34 0a 54 68 69  73 20 56 44 55 20 74 75  |U 14.This VDU tu|
00003310  72 6e 73 20 70 61 67 65  20 6d 6f 64 65 20 6f 6e  |rns page mode on|
00003320  2e 0a 0a 56 44 55 20 31  35 0a 54 68 69 73 20 56  |...VDU 15.This V|
00003330  44 55 20 74 75 72 6e 73  20 70 61 67 65 20 6d 6f  |DU turns page mo|
00003340  64 65 20 6f 66 66 2e 0a  0a 57 68 65 6e 20 70 61  |de off...When pa|
00003350  67 65 20 6d 6f 64 65 20  69 73 20 74 75 72 6e 65  |ge mode is turne|
00003360  64 20 6f 6e 20 74 68 65  20 56 44 55 20 64 72 69  |d on the VDU dri|
00003370  76 65 72 73 20 77 69 6c  6c 20 6e 6f 74 20 73 63  |vers will not sc|
00003380  72 6f 6c 6c 20 74 68 65  20 73 63 72 65 65 6e 20  |roll the screen |
00003390  75 6e 74 69 6c 20 53 68  69 66 74 20 69 73 20 70  |until Shift is p|
000033a0  72 65 73 73 65 64 2e 20  57 68 65 6e 20 73 68 69  |ressed. When shi|
000033b0  66 74 20 69 73 20 72 65  6c 65 61 73 65 64 20 74  |ft is released t|
000033c0  68 65 20 56 44 55 20 64  72 69 76 65 72 73 20 77  |he VDU drivers w|
000033d0  69 6c 6c 20 73 63 72 6f  6c 6c 20 61 70 70 72 6f  |ill scroll appro|
000033e0  78 69 6d 61 74 65 6c 79  20 37 35 25 20 6f 66 20  |ximately 75% of |
000033f0  74 68 65 20 6e 75 6d 62  65 72 20 6f 66 20 6c 69  |the number of li|
00003400  6e 65 73 20 69 6e 20 74  68 65 20 63 75 72 72 65  |nes in the curre|
00003410  6e 74 20 77 69 6e 64 6f  77 20 62 65 66 6f 72 65  |nt window before|
00003420  20 77 61 69 74 69 6e 67  20 61 67 61 69 6e 2e 20  | waiting again. |
00003430  3c 4f 53 5f 42 79 74 65  20 31 31 37 3d 3e 4f 53  |<OS_Byte 117=>OS|
00003440  3a 4f 53 5f 42 79 74 65  31 31 37 3e 20 69 73 20  |:OS_Byte117> is |
00003450  75 73 65 64 20 74 6f 20  64 65 74 65 72 6d 69 6e  |used to determin|
00003460  65 20 77 68 65 74 68 65  72 20 70 61 67 65 64 20  |e whether paged |
00003470  6d 6f 64 65 20 69 73 20  65 6e 61 62 6c 65 64 2c  |mode is enabled,|
00003480  20 61 6e 64 20 74 68 65  20 6c 69 6e 65 20 63 6f  | and the line co|
00003490  75 6e 74 20 62 65 66 6f  72 65 20 73 63 72 6f 6c  |unt before scrol|
000034a0  6c 69 6e 67 20 69 73 20  73 74 6f 70 70 65 64 20  |ling is stopped |
000034b0  63 61 6e 20 62 65 20 72  65 61 64 20 61 6e 64 20  |can be read and |
000034c0  73 65 74 20 77 69 74 68  20 3c 4f 53 5f 42 79 74  |set with <OS_Byt|
000034d0  65 20 32 31 37 3d 3e 4f  53 3a 4f 53 5f 42 79 74  |e 217=>OS:OS_Byt|
000034e0  65 32 31 37 3e 2e 0a 00  44 41 54 41 15 00 00 00  |e217>...DATA....|
000034f0  23 20 72 65 64 69 72 65  63 74 69 6f 6e 00 00 00  |# redirection...|
00003500  44 41 54 41 88 01 00 00  56 44 55 20 30 0a 23 50  |DATA....VDU 0.#P|
00003510  61 72 65 6e 74 20 21 52  6f 6f 74 0a 56 44 55 20  |arent !Root.VDU |
00003520  30 20 64 6f 65 73 20 6e  6f 74 68 69 6e 67 2e 0a  |0 does nothing..|
00003530  0a 54 68 69 73 20 61 6c  6c 6f 77 73 20 42 41 53  |.This allows BAS|
00003540  49 43 27 73 20 7b 66 43  6f 64 65 7d 7c 7b 66 7d  |IC's {fCode}|{f}|
00003550  20 74 6f 20 61 63 74 20  61 73 20 69 66 20 69 74  | to act as if it|
00003560  20 73 75 70 70 6c 69 65  73 20 74 68 65 20 65 78  | supplies the ex|
00003570  61 63 74 20 6e 75 6d 62  65 72 20 6f 66 20 7a 65  |act number of ze|
00003580  72 6f 20 62 79 74 65 73  20 74 6f 20 66 69 6c 6c  |ro bytes to fill|
00003590  20 74 68 65 20 72 65 6d  61 69 6e 69 6e 67 20 70  | the remaining p|
000035a0  61 72 61 6d 65 74 65 72  73 20 6f 66 20 63 6f 6d  |arameters of com|
000035b0  70 6c 65 78 20 56 44 55  20 63 6f 6d 6d 61 6e 64  |plex VDU command|
000035c0  73 20 28 7b 2f 7d 65 2e  67 2e 7b 2f 7d 20 3c 56  |s ({/}e.g.{/} <V|
000035d0  44 55 20 32 33 3d 3e 32  33 3e 29 20 2d 20 77 68  |DU 23=>23>) - wh|
000035e0  61 74 20 61 63 74 75 61  6c 6c 79 20 68 61 70 70  |at actually happ|
000035f0  65 6e 73 20 69 73 20 74  68 61 74 20 7b 66 43 6f  |ens is that {fCo|
00003600  64 65 7d 7c 7b 66 7d 20  61 6c 77 61 79 73 20 73  |de}|{f} always s|
00003610  75 70 70 6c 69 65 73 20  38 20 7a 65 72 6f 20 62  |upplies 8 zero b|
00003620  79 74 65 73 20 61 6e 64  20 61 6e 79 20 6c 65 66  |ytes and any lef|
00003630  74 20 6f 76 65 72 20 61  66 74 65 72 20 74 68 65  |t over after the|
00003640  20 63 6f 6d 70 6c 65 78  20 63 6f 6d 6d 61 6e 64  | complex command|
00003650  20 61 72 65 20 65 61 63  68 20 74 72 65 61 74 65  | are each treate|
00003660  64 20 61 73 20 56 44 55  20 30 20 63 6f 6d 6d 61  |d as VDU 0 comma|
00003670  6e 64 73 2c 20 61 6e 64  20 68 65 6e 63 65 20 69  |nds, and hence i|
00003680  67 6e 6f 72 65 64 2e 0a  44 41 54 41 87 01 00 00  |gnored..DATA....|
00003690  56 44 55 20 31 0a 23 50  61 72 65 6e 74 20 21 52  |VDU 1.#Parent !R|
000036a0  6f 6f 74 0a 56 44 55 20  31 2c 7b 2f 7d 6e 7b 2f  |oot.VDU 1,{/}n{/|
000036b0  7d 0a 0a 56 44 55 20 31  20 73 65 6e 64 73 20 74  |}..VDU 1 sends t|
000036c0  68 65 20 6e 65 78 74 20  62 79 74 65 20 74 6f 20  |he next byte to |
000036d0  74 68 65 20 70 72 69 6e  74 65 72 20 73 74 72 65  |the printer stre|
000036e0  61 6d 20 6f 6e 6c 79 2c  20 70 72 6f 76 69 64 65  |am only, provide|
000036f0  64 20 74 68 61 74 20 74  68 65 20 70 72 69 6e 74  |d that the print|
00003700  65 72 20 73 74 72 65 61  6d 20 68 61 73 20 62 65  |er stream has be|
00003710  65 6e 20 65 6e 61 62 6c  65 64 20 77 69 74 68 20  |en enabled with |
00003720  3c 56 44 55 20 32 3d 3e  32 3e 2e 20 28 4f 74 68  |<VDU 2=>2>. (Oth|
00003730  65 72 77 69 73 65 20 74  68 65 20 6e 65 78 74 20  |erwise the next |
00003740  62 79 74 65 20 69 73 20  69 67 6e 6f 72 65 64 29  |byte is ignored)|
00003750  0a 0a 56 44 55 20 31 20  61 6c 6c 6f 77 73 20 74  |..VDU 1 allows t|
00003760  68 65 20 70 72 69 6e 74  65 72 20 69 67 6e 6f 72  |he printer ignor|
00003770  65 20 63 68 61 72 61 63  74 65 72 20 28 73 65 74  |e character (set|
00003780  20 77 69 74 68 20 3c 4f  53 5f 42 79 74 65 20 36  | with <OS_Byte 6|
00003790  3d 3e 4f 53 3a 4f 53 5f  42 79 74 65 30 30 36 3e  |=>OS:OS_Byte006>|
000037a0  29 20 61 6e 64 20 6f 74  68 65 72 20 63 68 61 72  |) and other char|
000037b0  61 63 74 65 72 73 20 6e  6f 74 20 75 73 75 61 6c  |acters not usual|
000037c0  6c 79 20 70 61 73 73 65  64 20 6f 6e 20 62 79 20  |ly passed on by |
000037d0  74 68 65 20 56 44 55 20  64 72 69 76 65 72 73 20  |the VDU drivers |
000037e0  74 6f 20 62 65 20 73 65  6e 74 20 74 6f 20 74 68  |to be sent to th|
000037f0  65 20 70 72 69 6e 74 65  72 20 76 69 61 20 74 68  |e printer via th|
00003800  65 20 56 44 55 20 64 72  69 76 65 72 73 2e 0a 00  |e VDU drivers...|
00003810  44 41 54 41 37 01 00 00  56 44 55 20 31 30 0a 23  |DATA7...VDU 10.#|
00003820  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 56 44 55  |Parent !Root.VDU|
00003830  20 31 30 20 6d 6f 76 65  73 20 74 68 65 20 63 75  | 10 moves the cu|
00003840  72 73 6f 72 20 64 6f 77  6e 20 6f 6e 65 20 6c 69  |rsor down one li|
00003850  6e 65 0a 0a 49 6e 20 3c  56 44 55 20 34 3d 3e 34  |ne..In <VDU 4=>4|
00003860  3e 20 6d 6f 64 65 20 74  68 69 73 20 69 73 20 74  |> mode this is t|
00003870  68 65 20 74 65 78 74 20  63 75 72 73 6f 72 2c 20  |he text cursor, |
00003880  69 6e 20 3c 56 44 55 20  35 3d 3e 35 3e 20 6d 6f  |in <VDU 5=>5> mo|
00003890  64 65 20 74 68 65 20 67  72 61 70 68 69 63 73 20  |de the graphics |
000038a0  63 75 72 73 6f 72 2e 20  4d 6f 74 69 6f 6e 20 69  |cursor. Motion i|
000038b0  73 20 74 6f 20 70 6f 73  69 74 69 76 65 20 59 20  |s to positive Y |
000038c0  28 64 65 66 61 75 6c 74  20 69 73 20 64 6f 77 6e  |(default is down|
000038d0  2c 20 73 65 74 20 62 79  20 3c 56 44 55 20 32 33  |, set by <VDU 23|
000038e0  2c 31 36 3d 3e 32 33 2c  31 36 3e 29 2e 20 49 66  |,16=>23,16>). If|
000038f0  20 61 74 20 74 68 65 20  6c 61 73 74 20 6c 69 6e  | at the last lin|
00003900  65 20 74 68 65 20 73 63  72 65 65 6e 20 69 73 20  |e the screen is |
00003910  73 63 72 6f 6c 6c 65 64  20 69 66 20 73 63 72 6f  |scrolled if scro|
00003920  6c 6c 69 6e 67 20 69 73  20 65 6e 61 62 6c 65 64  |lling is enabled|
00003930  20 28 73 65 65 20 61 6c  73 6f 20 56 44 55 20 32  | (see also VDU 2|
00003940  33 2c 31 36 29 2e 0a 00  44 41 54 41 34 01 00 00  |3,16)...DATA4...|
00003950  56 44 55 20 31 31 0a 23  50 61 72 65 6e 74 20 21  |VDU 11.#Parent !|
00003960  52 6f 6f 74 0a 56 44 55  20 31 31 20 6d 6f 76 65  |Root.VDU 11 move|
00003970  73 20 74 68 65 20 63 75  72 73 6f 72 20 75 70 20  |s the cursor up |
00003980  6f 6e 65 20 6c 69 6e 65  0a 0a 49 6e 20 3c 56 44  |one line..In <VD|
00003990  55 20 34 3d 3e 34 3e 20  6d 6f 64 65 20 74 68 69  |U 4=>4> mode thi|
000039a0  73 20 69 73 20 74 68 65  20 74 65 78 74 20 63 75  |s is the text cu|
000039b0  72 73 6f 72 2c 20 69 6e  20 3c 56 44 55 20 35 3d  |rsor, in <VDU 5=|
000039c0  3e 35 3e 20 6d 6f 64 65  20 74 68 65 20 67 72 61  |>5> mode the gra|
000039d0  70 68 69 63 73 20 63 75  72 73 6f 72 2e 20 4d 6f  |phics cursor. Mo|
000039e0  74 69 6f 6e 20 69 73 20  74 6f 20 6e 65 67 61 74  |tion is to negat|
000039f0  69 76 65 20 59 20 28 64  65 66 61 75 6c 74 20 69  |ive Y (default i|
00003a00  73 20 75 70 2c 20 73 65  74 20 62 79 20 3c 56 44  |s up, set by <VD|
00003a10  55 20 32 33 2c 31 36 3d  3e 32 33 2c 31 36 3e 29  |U 23,16=>23,16>)|
00003a20  2e 20 49 66 20 61 74 20  74 68 65 20 66 69 72 73  |. If at the firs|
00003a30  74 20 6c 69 6e 65 20 74  68 65 20 73 63 72 65 65  |t line the scree|
00003a40  6e 20 69 73 20 73 63 72  6f 6c 6c 65 64 20 69 66  |n is scrolled if|
00003a50  20 73 63 72 6f 6c 6c 69  6e 67 20 69 73 20 65 6e  | scrolling is en|
00003a60  61 62 6c 65 64 20 28 73  65 65 20 61 6c 73 6f 20  |abled (see also |
00003a70  56 44 55 20 32 33 2c 31  36 29 2e 0a 44 41 54 41  |VDU 23,16)..DATA|
00003a80  ee 00 00 00 56 44 55 20  31 32 0a 23 50 61 72 65  |....VDU 12.#Pare|
00003a90  6e 74 20 21 52 6f 6f 74  0a 56 44 55 20 31 32 20  |nt !Root.VDU 12 |
00003aa0  63 6c 65 61 72 73 20 74  68 65 20 63 75 72 72 65  |clears the curre|
00003ab0  6e 74 20 77 69 6e 64 6f  77 0a 0a 49 6e 20 3c 56  |nt window..In <V|
00003ac0  44 55 20 34 3d 3e 34 3e  20 6d 6f 64 65 20 74 68  |DU 4=>4> mode th|
00003ad0  69 73 20 69 73 20 74 68  65 20 74 65 78 74 20 77  |is is the text w|
00003ae0  69 6e 64 6f 77 20 74 6f  20 74 68 65 20 74 65 78  |indow to the tex|
00003af0  74 20 62 61 63 6b 67 72  6f 75 6e 64 20 63 6f 6c  |t background col|
00003b00  6f 75 72 2c 20 69 6e 20  3c 56 44 55 20 35 3d 3e  |our, in <VDU 5=>|
00003b10  35 3e 20 6d 6f 64 65 20  74 68 65 20 67 72 61 70  |5> mode the grap|
00003b20  68 69 63 73 20 77 69 6e  64 6f 77 20 74 6f 20 74  |hics window to t|
00003b30  68 65 20 67 72 61 70 68  69 63 73 20 62 61 63 6b  |he graphics back|
00003b40  67 72 6f 75 6e 64 20 63  6f 6c 6f 75 72 2e 20 54  |ground colour. T|
00003b50  68 65 20 63 75 72 73 6f  72 20 69 73 20 3c 68 6f  |he cursor is <ho|
00003b60  6d 65 64 3d 3e 33 30 3e  2e 0a 00 00 44 41 54 41  |med=>30>....DATA|
00003b70  ff 00 00 00 56 44 55 20  31 33 0a 23 50 61 72 65  |....VDU 13.#Pare|
00003b80  6e 74 20 21 52 6f 6f 74  0a 56 44 55 20 31 33 20  |nt !Root.VDU 13 |
00003b90  6d 6f 76 65 73 20 74 68  65 20 63 75 72 73 6f 72  |moves the cursor|
00003ba0  20 74 6f 20 74 68 65 20  73 74 61 72 74 20 6f 66  | to the start of|
00003bb0  20 74 68 65 20 63 75 72  72 65 6e 74 20 6c 69 6e  | the current lin|
00003bc0  65 0a 0a 49 6e 20 3c 56  44 55 20 34 3d 3e 34 3e  |e..In <VDU 4=>4>|
00003bd0  20 6d 6f 64 65 20 74 68  69 73 20 69 73 20 74 68  | mode this is th|
00003be0  65 20 74 65 78 74 20 63  75 72 73 6f 72 2c 20 69  |e text cursor, i|
00003bf0  6e 20 3c 56 44 55 20 35  3d 3e 35 3e 20 6d 6f 64  |n <VDU 5=>5> mod|
00003c00  65 20 74 68 65 20 67 72  61 70 68 69 63 73 20 63  |e the graphics c|
00003c10  75 72 73 6f 72 2e 20 4d  6f 74 69 6f 6e 20 69 73  |ursor. Motion is|
00003c20  20 74 6f 20 6e 65 67 61  74 69 76 65 20 58 20 28  | to negative X (|
00003c30  64 65 66 61 75 6c 74 20  69 73 20 6c 65 66 74 2c  |default is left,|
00003c40  20 73 65 74 20 62 79 20  3c 56 44 55 20 32 33 2c  | set by <VDU 23,|
00003c50  31 36 3d 3e 32 33 2c 31  36 3e 29 20 61 74 20 63  |16=>23,16>) at c|
00003c60  6f 6e 73 74 61 6e 74 20  59 2e 0a 00 44 41 54 41  |onstant Y...DATA|
00003c70  8d 01 00 00 56 44 55 20  31 32 37 0a 23 50 61 72  |....VDU 127.#Par|
00003c80  65 6e 74 20 21 52 6f 6f  74 0a 56 44 55 20 31 32  |ent !Root.VDU 12|
00003c90  37 20 64 65 6c 65 74 65  73 20 74 68 65 20 70 72  |7 deletes the pr|
00003ca0  65 76 69 6f 75 73 20 63  68 61 72 61 63 74 65 72  |evious character|
00003cb0  2e 0a 0a 55 6e 6c 65 73  73 20 3c 56 44 55 20 32  |...Unless <VDU 2|
00003cc0  33 2c 31 36 3d 3e 32 33  2c 31 36 3e 20 73 70 65  |3,16=>23,16> spe|
00003cd0  63 69 66 69 65 73 20 6e  6f 20 63 75 72 73 6f 72  |cifies no cursor|
00003ce0  20 6d 6f 74 69 6f 6e 20  61 66 74 65 72 20 70 72  | motion after pr|
00003cf0  69 6e 74 69 6e 67 20 74  68 65 20 63 75 72 73 6f  |inting the curso|
00003d00  72 20 69 73 20 6d 6f 76  65 64 20 62 61 63 6b 20  |r is moved back |
00003d10  61 73 20 69 66 20 62 79  20 3c 56 44 55 20 38 3d  |as if by <VDU 8=|
00003d20  3e 38 3e 2e 20 49 6e 20  3c 56 44 55 20 35 3d 3e  |>8>. In <VDU 5=>|
00003d30  35 3e 20 6d 6f 64 65 20  74 68 65 20 63 68 61 72  |5> mode the char|
00003d40  61 63 74 65 72 20 70 6f  73 69 74 69 6f 6e 20 69  |acter position i|
00003d50  73 20 73 6f 6c 69 64 20  66 69 6c 6c 65 64 20 77  |s solid filled w|
00003d60  69 74 68 20 67 72 61 70  68 69 63 73 20 62 61 63  |ith graphics bac|
00003d70  6b 67 72 6f 75 6e 64 20  63 6f 6c 6f 75 72 2c 20  |kground colour, |
00003d80  69 6e 20 3c 56 44 55 20  34 3d 3e 34 3e 20 6d 6f  |in <VDU 4=>4> mo|
00003d90  64 65 20 77 69 74 68 20  74 65 78 74 20 62 61 63  |de with text bac|
00003da0  6b 67 72 6f 75 6e 64 20  63 6f 6c 6f 75 72 20 28  |kground colour (|
00003db0  7b 2f 7d 69 2e 65 2e 7b  2f 7d 20 61 20 73 70 61  |{/}i.e.{/} a spa|
00003dc0  63 65 20 69 73 20 70 72  69 6e 74 65 64 2c 20 65  |ce is printed, e|
00003dd0  76 65 6e 20 69 66 20 63  68 61 72 61 63 74 65 72  |ven if character|
00003de0  20 33 32 20 68 61 73 20  62 65 65 6e 20 72 65 64  | 32 has been red|
00003df0  65 66 69 6e 65 64 29 2e  0a 00 00 00 44 41 54 41  |efined).....DATA|
00003e00  e4 00 00 00 56 44 55 20  31 36 0a 23 50 61 72 65  |....VDU 16.#Pare|
00003e10  6e 74 20 21 52 6f 6f 74  0a 56 44 55 20 31 36 20  |nt !Root.VDU 16 |
00003e20  63 6c 65 61 72 73 20 74  68 65 20 67 72 61 70 68  |clears the graph|
00003e30  69 63 73 20 77 69 6e 64  6f 77 0a 0a 54 68 65 20  |ics window..The |
00003e40  77 69 6e 64 6f 77 20 69  73 20 63 6c 65 61 72 65  |window is cleare|
00003e50  64 20 74 6f 20 74 68 65  20 67 72 61 70 68 69 63  |d to the graphic|
00003e60  73 20 62 61 63 6b 67 72  6f 75 6e 64 20 63 6f 6c  |s background col|
00003e70  6f 75 72 20 75 73 69 6e  67 20 74 68 65 20 62 61  |our using the ba|
00003e80  63 6b 67 72 6f 75 6e 64  20 61 63 74 69 6f 6e 2e  |ckground action.|
00003e90  20 54 68 65 20 67 72 61  70 68 69 63 73 20 63 75  | The graphics cu|
00003ea0  72 73 6f 72 20 70 6f 73  69 74 69 6f 6e 20 69 73  |rsor position is|
00003eb0  20 75 6e 61 66 66 65 63  74 65 64 2e 20 54 68 69  | unaffected. Thi|
00003ec0  73 20 69 73 20 65 71 75  69 76 69 6c 65 6e 74 20  |s is equivilent |
00003ed0  74 6f 20 42 41 53 49 43  27 73 20 43 4c 47 2e 0a  |to BASIC's CLG..|
00003ee0  44 41 54 41 28 03 00 00  56 44 55 20 32 0a 23 50  |DATA(...VDU 2.#P|
00003ef0  61 72 65 6e 74 20 21 52  6f 6f 74 0a 56 44 55 20  |arent !Root.VDU |
00003f00  32 20 65 6e 61 62 6c 65  73 20 74 68 65 20 70 72  |2 enables the pr|
00003f10  69 6e 74 65 72 20 73 74  72 65 61 6d 20 2d 20 63  |inter stream - c|
00003f20  68 61 72 61 63 74 65 72  73 20 69 6e 20 74 68 65  |haracters in the|
00003f30  20 72 61 6e 67 65 20 38  2d 31 33 2c 20 33 32 2d  | range 8-13, 32-|
00003f40  31 32 36 20 61 6e 64 20  31 32 38 2d 32 35 35 20  |126 and 128-255 |
00003f50  73 65 6e 74 20 74 6f 20  74 68 65 20 56 44 55 20  |sent to the VDU |
00003f60  64 72 69 76 65 72 73 20  77 69 6c 6c 20 61 6c 73  |drivers will als|
00003f70  6f 20 62 65 20 73 65 6e  74 20 74 6f 20 74 68 65  |o be sent to the|
00003f80  20 70 72 69 6e 74 65 72  20 64 65 76 69 63 65 20  | printer device |
00003f90  73 65 6c 65 63 74 65 64  20 62 79 20 3c 4f 53 5f  |selected by <OS_|
00003fa0  42 79 74 65 20 35 3d 3e  4f 53 3a 4f 53 5f 42 79  |Byte 5=>OS:OS_By|
00003fb0  74 65 30 30 35 3e 2e 20  4d 75 6c 74 69 62 79 74  |te005>. Multibyt|
00003fc0  65 20 56 44 55 20 73 65  71 75 65 6e 63 65 73 20  |e VDU sequences |
00003fd0  61 72 65 20 6e 6f 74 20  73 65 6e 74 20 74 6f 20  |are not sent to |
00003fe0  74 68 65 20 70 72 69 6e  74 65 72 20 28 65 78 63  |the printer (exc|
00003ff0  65 70 74 20 66 6f 72 20  74 68 65 20 61 72 67 75  |ept for the argu|
00004000  6d 65 6e 74 20 6f 66 3c  56 44 55 20 31 3d 3e 31  |ment of<VDU 1=>1|
00004010  3e 29 2c 20 61 6e 64 20  62 79 74 65 73 20 61 72  |>), and bytes ar|
00004020  65 20 73 74 69 6c 6c 20  73 65 6e 74 20 74 6f 20  |e still sent to |
00004030  74 68 65 20 70 72 69 6e  74 65 72 20 73 74 72 65  |the printer stre|
00004040  61 6d 20 77 68 65 6e 20  73 63 72 65 65 6e 20 6f  |am when screen o|
00004050  75 74 70 75 74 20 69 73  20 64 69 73 61 62 6c 65  |utput is disable|
00004060  64 20 77 69 74 68 20 3c  56 44 55 20 32 31 3d 3e  |d with <VDU 21=>|
00004070  32 31 3e 2e 0a 0a 3c 56  44 55 20 33 3d 3e 33 3e  |21>...<VDU 3=>3>|
00004080  20 64 69 73 61 62 6c 65  73 20 74 68 65 20 70 72  | disables the pr|
00004090  69 6e 74 65 72 20 73 74  72 65 61 6d 2c 20 61 6e  |inter stream, an|
000040a0  64 20 3c 4f 53 5f 42 79  74 65 20 31 31 37 3d 3e  |d <OS_Byte 117=>|
000040b0  4f 53 3a 4f 53 5f 42 79  74 65 31 31 37 3e 20 63  |OS:OS_Byte117> c|
000040c0  61 6e 20 62 65 20 75 73  65 64 20 74 6f 20 72 65  |an be used to re|
000040d0  61 64 20 77 68 65 74 68  65 72 20 74 68 65 20 70  |ad whether the p|
000040e0  72 69 6e 74 65 72 20 73  74 72 65 61 6d 20 69 73  |rinter stream is|
000040f0  20 65 6e 61 62 6c 65 64  2e 0a 0a 3c 4f 53 5f 42  | enabled...<OS_B|
00004100  79 74 65 20 33 3d 3e 4f  53 3a 4f 53 5f 42 79 74  |yte 3=>OS:OS_Byt|
00004110  65 30 30 33 3e 20 63 61  6e 20 62 65 20 75 73 65  |e003> can be use|
00004120  64 20 74 6f 20 64 69 73  61 62 6c 65 20 74 68 65  |d to disable the|
00004130  20 70 72 69 6e 74 65 72  20 73 74 72 65 61 6d 20  | printer stream |
00004140  69 6e 64 65 70 65 6e 64  65 6e 74 6c 79 20 6f 66  |independently of|
00004150  20 56 44 55 20 32 20 61  6e 64 20 3c 33 3e 20 2d  | VDU 2 and <3> -|
00004160  20 69 6e 20 74 68 65 20  3c 6f 75 74 70 75 74 20  | in the <output |
00004170  73 74 72 65 61 6d 20 73  74 61 74 75 73 3d 3e 4f  |stream status=>O|
00004180  53 3a 4f 53 5f 42 79 74  65 30 30 33 73 74 61 74  |S:OS_Byte003stat|
00004190  65 3e 20 62 69 74 20 32  20 6f 76 65 72 72 69 64  |e> bit 2 overrid|
000041a0  65 73 20 56 44 55 20 32  2c 20 61 6e 64 20 62 69  |es VDU 2, and bi|
000041b0  74 20 36 20 6d 75 73 74  20 62 65 20 63 6c 65 61  |t 6 must be clea|
000041c0  72 20 66 6f 72 20 61 6e  79 74 68 69 6e 67 20 6f  |r for anything o|
000041d0  74 68 65 72 20 74 68 61  6e 20 3c 56 44 55 20 31  |ther than <VDU 1|
000041e0  3d 3e 31 3e 20 74 6f 20  73 65 6e 64 20 63 68 61  |=>1> to send cha|
000041f0  72 61 63 74 65 72 73 20  74 6f 20 74 68 65 20 70  |racters to the p|
00004200  72 69 6e 74 65 72 2e 0a  44 41 54 41 05 01 00 00  |rinter..DATA....|
00004210  56 44 55 20 32 30 0a 23  50 61 72 65 6e 74 20 21  |VDU 20.#Parent !|
00004220  52 6f 6f 74 0a 56 44 55  20 32 30 20 72 65 73 74  |Root.VDU 20 rest|
00004230  6f 72 65 73 20 74 68 65  20 70 61 6c 65 74 74 65  |ores the palette|
00004240  20 66 6f 72 20 74 68 65  20 63 75 72 72 65 6e 74  | for the current|
00004250  20 6d 6f 64 65 2e 0a 0a  54 68 65 20 74 65 78 74  | mode...The text|
00004260  20 61 6e 64 20 67 72 61  70 68 69 63 73 20 66 6f  | and graphics fo|
00004270  72 65 67 72 6f 75 6e 64  20 69 73 20 77 68 69 74  |reground is whit|
00004280  65 2c 20 62 61 63 6b 67  72 6f 75 6e 64 20 62 6c  |e, background bl|
00004290  61 63 6b 2e 20 47 72 61  70 68 69 63 73 20 66 6f  |ack. Graphics fo|
000042a0  72 65 67 72 6f 75 6e 64  20 61 6e 64 20 62 61 63  |reground and bac|
000042b0  6b 67 72 6f 75 6e 64 20  61 63 74 69 6f 6e 73 20  |kground actions |
000042c0  61 72 65 20 30 20 28 6f  76 65 72 77 72 69 74 65  |are 0 (overwrite|
000042d0  29 2e 20 49 6e 20 32 35  36 20 63 6f 6c 6f 75 72  |). In 256 colour|
000042e0  20 6d 6f 64 65 73 20 66  6f 72 65 67 72 6f 75 6e  | modes foregroun|
000042f0  64 20 74 69 6e 74 20 69  73 20 26 43 30 2c 20 62  |d tint is &C0, b|
00004300  61 63 6b 67 72 6f 75 6e  64 20 30 2e 0a 00 00 00  |ackground 0.....|
00004310  44 41 54 41 6b 02 00 00  56 44 55 20 32 31 0a 23  |DATAk...VDU 21.#|
00004320  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 56 44 55  |Parent !Root.VDU|
00004330  20 32 31 20 64 69 73 61  62 6c 65 73 20 73 63 72  | 21 disables scr|
00004340  65 65 6e 20 6f 75 74 70  75 74 2e 20 49 74 20 69  |een output. It i|
00004350  73 20 72 65 76 65 72 73  65 64 20 77 69 74 68 20  |s reversed with |
00004360  3c 56 44 55 20 36 3d 3e  36 3e 2c 20 61 6e 64 20  |<VDU 6=>6>, and |
00004370  74 68 65 20 73 74 61 74  65 20 63 61 6e 20 62 65  |the state can be|
00004380  20 72 65 61 64 20 77 69  74 68 20 3c 4f 53 5f 42  | read with <OS_B|
00004390  79 74 65 20 31 31 37 3d  3e 4f 53 3a 4f 53 5f 42  |yte 117=>OS:OS_B|
000043a0  79 74 65 31 31 37 3e 2e  0a 0a 43 68 61 72 61 63  |yte117>...Charac|
000043b0  74 65 72 73 20 61 72 65  20 73 74 69 6c 6c 20 73  |ters are still s|
000043c0  65 6e 74 20 74 6f 20 74  68 65 20 70 72 69 6e 74  |ent to the print|
000043d0  65 72 20 28 69 66 20 69  74 20 68 61 73 20 62 65  |er (if it has be|
000043e0  65 6e 20 65 6e 61 62 6c  65 64 20 77 69 74 68 20  |en enabled with |
000043f0  3c 56 44 55 20 32 3d 3e  32 3e 29 20 61 6e 64 20  |<VDU 2=>2>) and |
00004400  61 6e 79 20 6f 74 68 65  72 20 6f 75 70 75 74 20  |any other ouput |
00004410  64 65 76 69 63 65 73 20  65 6e 61 62 6c 65 64 20  |devices enabled |
00004420  77 69 74 68 20 3c 4f 53  5f 42 79 74 65 20 33 3d  |with <OS_Byte 3=|
00004430  3e 4f 53 3a 4f 53 5f 42  79 74 65 30 30 33 3e 2e  |>OS:OS_Byte003>.|
00004440  20 4d 75 6c 74 69 62 79  74 65 20 56 44 55 20 73  | Multibyte VDU s|
00004450  65 71 75 65 6e 63 65 73  20 61 72 65 20 73 74 69  |equences are sti|
00004460  6c 6c 20 70 61 73 73 65  64 20 61 73 20 75 73 75  |ll passed as usu|
00004470  61 6c 20 28 62 75 74 20  74 68 65 6e 20 69 67 6e  |al (but then ign|
00004480  6f 72 65 64 20 69 66 20  74 68 65 79 20 61 66 66  |ored if they aff|
00004490  65 63 74 20 74 68 65 20  73 63 72 65 65 6e 29 20  |ect the screen) |
000044a0  2d 20 68 65 6e 63 65 20  73 65 6e 64 69 6e 67 20  |- hence sending |
000044b0  7b 66 43 6f 64 65 7d 32  32 7b 66 7d 2c 20 7b 66  |{fCode}22{f}, {f|
000044c0  43 6f 64 65 7d 36 7b 66  7d 20 77 68 69 6c 65 20  |Code}6{f} while |
000044d0  74 68 65 20 73 63 72 65  65 6e 20 6f 75 70 75 74  |the screen ouput|
000044e0  20 69 73 20 64 69 73 61  62 6c 65 64 20 77 69 6c  | is disabled wil|
000044f0  6c 20 6e 65 69 74 68 65  72 20 63 68 61 6e 67 65  |l neither change|
00004500  20 74 68 65 20 6d 6f 64  65 20 28 3c 56 44 55 20  | the mode (<VDU |
00004510  32 32 3d 3e 32 32 3e 29  20 6e 6f 72 20 65 6e 61  |22=>22>) nor ena|
00004520  62 6c 65 20 73 63 72 65  65 6e 20 6f 75 74 70 75  |ble screen outpu|
00004530  74 20 28 74 68 65 20 7b  66 43 6f 64 65 7d 36 7b  |t (the {fCode}6{|
00004540  66 7d 20 62 79 74 65 20  69 73 20 70 61 72 73 65  |f} byte is parse|
00004550  64 20 61 73 20 74 68 65  20 70 61 72 61 6d 65 74  |d as the paramet|
00004560  65 72 20 74 6f 20 74 68  65 20 69 67 6e 6f 72 65  |er to the ignore|
00004570  64 20 56 44 55 20 32 32  29 2e 0a 00 44 41 54 41  |d VDU 22)...DATA|
00004580  32 01 00 00 56 44 55 20  32 33 2c 31 30 0a 23 50  |2...VDU 23,10.#P|
00004590  61 72 65 6e 74 20 32 33  61 0a 56 44 55 20 32 33  |arent 23a.VDU 23|
000045a0  2c 31 30 2c 64 75 72 61  74 69 6f 6e 2c 30 2c 30  |,10,duration,0,0|
000045b0  2c 30 2c 30 2c 30 2c 30  2c 30 0a 0a 54 68 69 73  |,0,0,0,0,0..This|
000045c0  20 56 44 55 20 73 65 74  73 20 74 68 65 20 64 75  | VDU sets the du|
000045d0  72 61 74 69 6f 6e 20 6f  66 20 74 68 65 20 73 65  |ration of the se|
000045e0  63 6f 6e 64 20 66 6c 61  73 68 20 63 6f 6c 6f 75  |cond flash colou|
000045f0  72 20 28 69 6e 20 76 69  64 65 6f 20 66 72 61 6d  |r (in video fram|
00004600  65 73 29 2c 20 61 6e 64  20 69 73 20 65 71 75 69  |es), and is equi|
00004610  76 61 6c 65 6e 74 20 74  6f 20 3c 4f 53 5f 42 79  |valent to <OS_By|
00004620  74 65 20 31 30 3d 3e 4f  53 3a 4f 53 5f 42 79 74  |te 10=>OS:OS_Byt|
00004630  65 30 31 30 3e 2e 20 54  68 65 20 64 75 72 61 74  |e010>. The durat|
00004640  69 6f 6e 20 63 61 6e 20  62 65 20 72 65 61 64 20  |ion can be read |
00004650  77 69 74 68 20 3c 4f 53  5f 42 79 74 65 20 31 39  |with <OS_Byte 19|
00004660  34 3d 3e 4f 53 3a 4f 53  5f 42 79 74 65 31 39 34  |4=>OS:OS_Byte194|
00004670  3e 2e 20 41 20 64 75 72  61 74 69 6f 6e 20 6f 66  |>. A duration of|
00004680  20 30 20 6d 65 61 6e 73  20 64 69 73 70 6c 61 79  | 0 means display|
00004690  20 74 68 65 20 66 69 72  73 74 20 63 6f 6c 6f 75  | the first colou|
000046a0  72 20 63 6f 6e 73 74 61  6e 74 6c 79 2e 0a 00 00  |r constantly....|
000046b0  44 41 54 41 af 00 00 00  56 44 55 20 32 33 2c 31  |DATA....VDU 23,1|
000046c0  31 0a 23 50 61 72 65 6e  74 20 32 33 61 0a 56 44  |1.#Parent 23a.VD|
000046d0  55 20 32 33 2c 31 31 2c  30 2c 30 2c 30 2c 30 2c  |U 23,11,0,0,0,0,|
000046e0  30 2c 30 2c 30 2c 30 0a  0a 54 68 69 73 20 56 44  |0,0,0,0..This VD|
000046f0  55 20 73 65 74 73 20 4d  61 73 74 65 72 20 31 32  |U sets Master 12|
00004700  38 20 63 6f 6d 70 61 74  69 62 6c 65 20 70 61 74  |8 compatible pat|
00004710  74 65 72 6e 20 6d 6f 64  65 2c 20 61 6e 64 20 72  |tern mode, and r|
00004720  65 73 65 74 73 20 74 68  65 20 63 6f 6c 6f 75 72  |esets the colour|
00004730  20 70 61 74 74 65 72 6e  73 20 74 6f 20 74 68 65  | patterns to the|
00004740  20 3c 6d 6f 64 65 20 64  65 66 61 75 6c 74 73 3d  | <mode defaults=|
00004750  3e 65 63 66 5f 64 65 66  61 75 6c 74 3e 2e 0a 00  |>ecf_default>...|
00004760  44 41 54 41 ca 01 00 00  56 44 55 20 32 33 2c 31  |DATA....VDU 23,1|
00004770  32 2d 31 35 0a 23 50 61  72 65 6e 74 20 32 33 61  |2-15.#Parent 23a|
00004780  0a 56 44 55 20 32 33 2c  7b 2f 7d 6e 72 7b 2f 7d  |.VDU 23,{/}nr{/}|
00004790  2c 7b 2f 7d 6e 31 7b 2f  7d 2c 7b 2f 7d 6e 32 7b  |,{/}n1{/},{/}n2{|
000047a0  2f 7d 2c 7b 2f 7d 6e 33  7b 2f 7d 2c 7b 2f 7d 6e  |/},{/}n3{/},{/}n|
000047b0  34 7b 2f 7d 2c 7b 2f 7d  6e 35 7b 2f 7d 2c 7b 2f  |4{/},{/}n5{/},{/|
000047c0  7d 6e 36 7b 2f 7d 2c 7b  2f 7d 6e 37 7b 2f 7d 2c  |}n6{/},{/}n7{/},|
000047d0  7b 2f 7d 6e 38 7b 2f 7d  0a 0a 54 68 69 73 20 56  |{/}n8{/}..This V|
000047e0  44 55 20 64 65 66 69 6e  65 73 20 6f 6e 65 20 6f  |DU defines one o|
000047f0  66 20 74 68 65 20 45 43  46 20 70 61 74 74 65 72  |f the ECF patter|
00004800  6e 73 3b 20 7b 2f 7d 6e  72 7b 2f 7d 20 69 73 20  |ns; {/}nr{/} is |
00004810  31 32 2d 31 35 20 66 6f  72 20 70 61 74 74 65 72  |12-15 for patter|
00004820  6e 20 31 2d 34 2e 0a 0a  46 6f 72 20 32 2c 34 20  |n 1-4...For 2,4 |
00004830  61 6e 64 20 31 36 20 63  6f 6c 6f 75 72 20 6d 6f  |and 16 colour mo|
00004840  64 65 73 20 74 68 69 73  20 64 65 66 69 6e 65 73  |des this defines|
00004850  20 74 68 65 20 70 61 74  74 65 72 6e 73 20 61 73  | the patterns as|
00004860  20 61 20 72 65 70 65 61  74 65 64 20 32 20 d7 20  | a repeated 2 . |
00004870  34 20 62 6c 6f 63 6b 20  6f 66 20 70 69 78 65 6c  |4 block of pixel|
00004880  73 20 77 69 74 68 20 74  68 65 20 67 69 76 65 6e  |s with the given|
00004890  20 6c 6f 67 69 63 61 6c  20 63 6f 6c 6f 75 72 73  | logical colours|
000048a0  3a 0a 0a 09 7b 2f 7d 6e  31 7b 2f 7d 09 7b 2f 7d  |:...{/}n1{/}.{/}|
000048b0  6e 32 7b 2f 7d 0a 09 7b  2f 7d 6e 33 7b 2f 7d 09  |n2{/}..{/}n3{/}.|
000048c0  7b 2f 7d 6e 34 7b 2f 7d  0a 09 7b 2f 7d 6e 35 7b  |{/}n4{/}..{/}n5{|
000048d0  2f 7d 09 7b 2f 7d 6e 36  7b 2f 7d 0a 09 7b 2f 7d  |/}.{/}n6{/}..{/}|
000048e0  6e 37 7b 2f 7d 09 7b 2f  7d 6e 38 7b 2f 7d 0a 0a  |n7{/}.{/}n8{/}..|
000048f0  49 6e 20 32 35 36 20 63  6f 6c 6f 75 72 20 6d 6f  |In 256 colour mo|
00004900  64 65 73 20 74 68 65 20  70 61 72 61 6d 65 74 65  |des the paramete|
00004910  72 73 20 64 65 66 69 6e  65 20 74 68 65 20 65 69  |rs define the ei|
00004920  67 68 74 20 72 6f 77 73  2e 0a 00 00 44 41 54 41  |ght rows....DATA|
00004930  10 04 00 00 56 44 55 20  32 33 2c 31 36 0a 23 50  |....VDU 23,16.#P|
00004940  61 72 65 6e 74 20 32 33  61 0a 56 44 55 20 32 33  |arent 23a.VDU 23|
00004950  2c 31 36 2c 7b 2f 7d 78  7b 2f 7d 2c 7b 2f 7d 79  |,16,{/}x{/},{/}y|
00004960  7b 2f 7d 2c 30 2c 30 2c  30 2c 30 2c 30 2c 30 0a  |{/},0,0,0,0,0,0.|
00004970  0a 54 68 69 73 20 56 44  55 20 63 6f 6e 74 72 6f  |.This VDU contro|
00004980  6c 73 20 74 68 65 20 6d  6f 76 65 6d 65 6e 74 20  |ls the movement |
00004990  6f 66 20 74 68 65 20 63  75 72 73 6f 72 20 61 66  |of the cursor af|
000049a0  74 65 72 20 70 72 69 6e  74 69 6e 67 2e 20 54 68  |ter printing. Th|
000049b0  65 20 76 61 6c 75 65 20  6f 66 20 74 68 65 20 63  |e value of the c|
000049c0  6f 6e 74 72 6f 6c 20 62  79 74 65 20 69 73 20 61  |ontrol byte is a|
000049d0  6c 74 65 72 65 64 20 62  79 0a 0a 20 20 6e 65 77  |ltered by..  new|
000049e0  20 76 61 6c 75 65 20 3d  20 28 6f 6c 64 20 76 61  | value = (old va|
000049f0  6c 75 65 20 41 4e 44 20  7b 2f 7d 79 7b 2f 7d 29  |lue AND {/}y{/})|
00004a00  20 45 4f 52 20 7b 2f 7d  78 7b 2f 7d 0a 0a 54 68  | EOR {/}x{/}..Th|
00004a10  65 20 62 69 74 73 20 69  6e 20 74 68 65 20 76 61  |e bits in the va|
00004a20  6c 75 65 20 61 72 65 20  69 6e 74 65 72 70 72 65  |lue are interpre|
00004a30  74 65 64 20 61 73 20 66  6f 6c 6c 6f 77 73 0a 0a  |ted as follows..|
00004a40  62 69 74 09 65 66 66 65  63 74 20 77 68 65 6e 20  |bit.effect when |
00004a50  73 65 74 0a 23 4c 69 6e  65 0a 37 09 75 6e 64 65  |set.#Line.7.unde|
00004a60  66 69 6e 65 64 20 28 6e  6f 72 6d 61 6c 20 69 73  |fined (normal is|
00004a70  20 75 6e 73 65 74 29 0a  36 09 69 6e 20 3c 56 44  | unset).6.in <VD|
00004a80  55 20 35 3d 3e 35 3e 20  6d 6f 64 65 20 63 75 72  |U 5=>5> mode cur|
00004a90  73 6f 72 20 6d 6f 76 65  6d 65 6e 74 20 62 65 79  |sor movement bey|
00004aa0  6f 6e 64 20 74 68 65 20  77 69 6e 64 6f 77 20 65  |ond the window e|
00004ab0  64 67 65 20 64 6f 65 73  20 6e 6f 74 20 67 65 6e  |dge does not gen|
00004ac0  65 72 61 74 65 20 6e 65  77 6c 69 6e 65 73 0a 35  |erate newlines.5|
00004ad0  09 63 75 72 73 6f 72 20  64 6f 65 73 20 6e 6f 74  |.cursor does not|
00004ae0  20 6d 6f 76 65 20 61 66  74 65 72 20 63 68 61 72  | move after char|
00004af0  61 63 74 65 72 73 20 61  72 65 20 70 72 69 6e 74  |acters are print|
00004b00  65 64 20 28 6e 6f 72 6d  61 6c 20 61 63 74 69 6f  |ed (normal actio|
00004b10  6e 20 69 73 20 74 6f 20  6d 6f 76 65 20 69 6e 20  |n is to move in |
00004b20  70 6f 73 69 74 69 76 65  20 58 20 64 69 72 65 63  |positive X direc|
00004b30  74 69 6f 6e 29 0a 34 09  63 75 72 73 6f 72 20 6d  |tion).4.cursor m|
00004b40  6f 76 65 6d 65 6e 74 20  69 6e 20 59 20 64 69 72  |ovement in Y dir|
00004b50  65 63 74 69 6f 6e 20 6f  75 74 20 6f 66 20 77 69  |ection out of wi|
00004b60  6e 64 6f 77 20 72 65 73  75 6c 74 73 20 69 6e 20  |ndow results in |
00004b70  63 75 72 73 6f 72 20 62  65 69 6e 67 20 22 77 72  |cursor being "wr|
00004b80  61 70 70 65 64 20 72 6f  75 6e 64 22 20 74 6f 20  |apped round" to |
00004b90  6f 70 70 6f 73 69 74 65  20 73 69 64 65 20 28 6e  |opposite side (n|
00004ba0  6f 72 6d 61 6c 20 61 63  74 69 6f 6e 20 69 6e 20  |ormal action in |
00004bb0  3c 56 44 55 20 34 3d 3e  34 3e 20 6d 6f 64 65 20  |<VDU 4=>4> mode |
00004bc0  69 73 20 74 6f 20 73 63  72 6f 6c 6c 2c 20 3c 56  |is to scroll, <V|
00004bd0  44 55 20 35 3d 3e 35 3e  20 74 6f 20 77 72 61 70  |DU 5=>5> to wrap|
00004be0  29 0a 33 09 58 20 64 69  72 65 63 74 69 6f 6e 20  |).3.X direction |
00004bf0  69 73 20 76 65 72 74 69  63 61 6c 2c 20 59 20 69  |is vertical, Y i|
00004c00  73 20 68 6f 72 69 7a 6f  6e 74 61 6c 20 28 6e 6f  |s horizontal (no|
00004c10  72 6d 61 6c 20 69 73 20  59 20 76 65 72 74 69 63  |rmal is Y vertic|
00004c20  61 6c 29 0a 32 09 50 6f  73 69 74 69 76 65 20 76  |al).2.Positive v|
00004c30  65 72 74 69 63 61 6c 20  64 69 72 65 63 74 69 6f  |ertical directio|
00004c40  6e 20 69 73 20 64 6f 77  6e 20 28 6e 6f 72 6d 61  |n is down (norma|
00004c50  6c 20 69 73 20 75 70 29  0a 31 09 50 6f 73 69 74  |l is up).1.Posit|
00004c60  69 76 65 20 68 6f 72 69  7a 6f 6e 74 61 6c 20 64  |ive horizontal d|
00004c70  69 72 65 63 74 69 6f 6e  20 69 73 20 72 69 67 68  |irection is righ|
00004c80  74 20 28 6e 6f 72 6d 61  6c 20 69 73 20 6c 65 66  |t (normal is lef|
00004c90  74 29 0a 30 09 3c 73 63  72 6f 6c 6c 20 70 72 6f  |t).0.<scroll pro|
00004ca0  74 65 63 74 69 6f 6e 3d  3e 53 63 72 6f 6c 6c 5f  |tection=>Scroll_|
00004cb0  50 72 6f 74 65 63 74 69  6f 6e 3e 20 65 6e 61 62  |Protection> enab|
00004cc0  6c 65 64 20 28 6e 6f 72  6d 61 6c 20 69 73 20 64  |led (normal is d|
00004cd0  69 73 61 62 6c 65 64 2c  20 62 75 74 20 64 65 73  |isabled, but des|
00004ce0  6b 74 6f 70 20 73 65 74  73 20 62 69 74 20 30 20  |ktop sets bit 0 |
00004cf0  61 6e 64 20 7b 2a 7d 65  6e 61 62 6c 65 73 20 73  |and {*}enables s|
00004d00  63 72 6f 6c 6c 20 70 72  6f 74 65 63 74 69 6f 6e  |croll protection|
00004d10  7b 2a 7d 29 0a 23 20 4d  75 63 68 20 74 65 61 72  |{*}).# Much tear|
00004d20  73 20 62 65 66 6f 72 65  20 62 65 64 74 69 6d 65  |s before bedtime|
00004d30  2c 20 74 68 61 74 20 6f  6e 65 2e 0a 44 41 54 41  |, that one..DATA|
00004d40  d8 02 00 00 56 44 55 20  32 33 2c 37 0a 23 50 61  |....VDU 23,7.#Pa|
00004d50  72 65 6e 74 20 32 33 61  0a 56 44 55 20 32 33 2c  |rent 23a.VDU 23,|
00004d60  37 2c 65 78 74 65 6e 74  2c 3c 64 69 72 65 63 74  |7,extent,<direct|
00004d70  69 6f 6e 3d 3e 2e 64 69  72 65 63 74 69 6f 6e 3e  |ion=>.direction>|
00004d80  2c 6d 6f 76 65 6d 65 6e  74 2c 30 2c 30 2c 30 2c  |,movement,0,0,0,|
00004d90  30 2c 30 0a 0a 54 68 69  73 20 56 44 55 20 73 63  |0,0..This VDU sc|
00004da0  72 6f 6c 6c 73 20 74 68  65 20 63 75 72 72 65 6e  |rolls the curren|
00004db0  74 20 74 65 78 74 20 77  69 6e 64 6f 77 20 6f 72  |t text window or|
00004dc0  20 77 68 6f 6c 65 20 73  63 72 65 65 6e 3a 0a 0a  | whole screen:..|
00004dd0  65 78 74 65 6e 74 09 65  66 66 65 63 74 0a 23 4c  |extent.effect.#L|
00004de0  69 6e 65 0a 30 09 73 63  72 6f 6c 6c 20 74 65 78  |ine.0.scroll tex|
00004df0  74 20 77 69 6e 64 6f 77  0a 31 09 73 63 72 6f 6c  |t window.1.scrol|
00004e00  6c 20 77 68 6f 6c 65 20  73 63 72 65 65 6e 0a 23  |l whole screen.#|
00004e10  74 61 62 0a 0a 6d 6f 76  65 6d 65 6e 74 09 65 66  |tab..movement.ef|
00004e20  66 65 63 74 0a 23 6c 69  6e 65 0a 30 09 09 73 63  |fect.#line.0..sc|
00004e30  72 6f 6c 6c 20 62 79 20  6f 6e 65 20 63 68 61 72  |roll by one char|
00004e40  61 63 74 65 72 20 63 65  6c 6c 0a 31 09 09 73 63  |acter cell.1..sc|
00004e50  72 6f 6c 6c 20 62 79 20  6f 6e 65 20 63 68 61 72  |roll by one char|
00004e60  61 63 74 65 72 20 63 65  6c 6c 20 76 65 72 74 69  |acter cell verti|
00004e70  63 61 6c 6c 79 2c 20 3c  6f 6e 65 20 62 79 74 65  |cally, <one byte|
00004e80  3d 3e 2e 62 79 74 65 3e  20 68 6f 72 69 7a 6f 6e  |=>.byte> horizon|
00004e90  74 61 6c 6c 79 0a 23 53  75 62 70 61 67 65 20 62  |tally.#Subpage b|
00004ea0  79 74 65 0a 56 44 55 20  32 33 2c 37 20 31 20 62  |yte.VDU 23,7 1 b|
00004eb0  79 74 65 20 68 6f 72 69  7a 6f 6e 74 61 6c 20 6d  |yte horizontal m|
00004ec0  6f 74 69 6f 6e 0a 4e 75  6d 62 65 72 20 6f 66 20  |otion.Number of |
00004ed0  63 6f 6c 6f 75 72 73 09  50 69 78 65 6c 73 20 6d  |colours.Pixels m|
00004ee0  6f 76 65 64 0a 23 4c 69  6e 65 0a 32 09 09 09 38  |oved.#Line.2...8|
00004ef0  0a 34 09 09 09 34 0a 31  36 09 09 09 32 0a 32 35  |.4...4.16...2.25|
00004f00  36 09 09 09 31 0a 23 20  61 6e 64 20 66 6f 72 20  |6...1.# and for |
00004f10  74 68 65 20 6f 74 68 65  72 20 32 3f 0a 23 53 75  |the other 2?.#Su|
00004f20  62 70 61 67 65 20 64 69  72 65 63 74 69 6f 6e 0a  |bpage direction.|
00004f30  56 44 55 20 32 33 2c 37  20 64 69 72 65 63 74 69  |VDU 23,7 directi|
00004f40  6f 6e 73 0a 76 61 6c 75  65 09 73 63 72 6f 6c 6c  |ons.value.scroll|
00004f50  20 64 69 72 65 63 74 69  6f 6e 0a 23 4c 69 6e 65  | direction.#Line|
00004f60  0a 30 09 72 69 67 68 74  0a 31 09 6c 65 66 74 0a  |.0.right.1.left.|
00004f70  32 09 64 6f 77 6e 0a 33  09 75 70 0a 34 09 70 6f  |2.down.3.up.4.po|
00004f80  73 69 74 69 76 65 20 58  20 64 69 72 65 63 74 69  |sitive X directi|
00004f90  6f 6e 0a 35 09 6e 65 67  61 74 69 76 65 20 58 20  |on.5.negative X |
00004fa0  64 69 72 65 63 74 69 6f  6e 0a 36 09 70 6f 73 69  |direction.6.posi|
00004fb0  74 69 76 65 20 59 20 64  69 72 65 63 74 69 6f 6e  |tive Y direction|
00004fc0  0a 37 09 6e 65 67 61 74  69 76 65 20 59 20 64 69  |.7.negative Y di|
00004fd0  72 65 63 74 69 6f 6e 0a  0a 58 20 61 6e 64 20 59  |rection..X and Y|
00004fe0  20 64 69 72 65 63 74 69  6f 6e 73 20 61 72 65 20  | directions are |
00004ff0  63 6f 6e 74 72 6f 6c 6c  65 64 20 77 69 74 68 20  |controlled with |
00005000  3c 56 44 55 20 32 33 2c  31 36 3d 3e 32 33 2c 31  |<VDU 23,16=>23,1|
00005010  36 3e 2e 0a 44 41 54 41  3a 03 00 00 56 44 55 20  |6>..DATA:...VDU |
00005020  32 33 2c 38 0a 23 50 61  72 65 6e 74 20 32 33 61  |23,8.#Parent 23a|
00005030  0a 56 44 55 20 32 33 2c  38 2c 62 61 73 65 5f 73  |.VDU 23,8,base_s|
00005040  74 61 72 74 2c 62 61 73  65 5f 65 6e 64 2c 7b 2f  |tart,base_end,{/|
00005050  7d 78 31 7b 2f 7d 2c 7b  2f 7d 79 31 7b 2f 7d 2c  |}x1{/},{/}y1{/},|
00005060  7b 2f 7d 78 32 7b 2f 7d  2c 7b 2f 7d 79 32 7b 2f  |{/}x2{/},{/}y2{/|
00005070  7d 2c 30 2c 30 0a 0a 54  68 69 73 20 56 44 55 20  |},0,0..This VDU |
00005080  63 6c 65 61 72 73 20 61  20 62 6c 6f 63 6b 20 6f  |clears a block o|
00005090  66 20 74 68 65 20 74 65  78 74 20 77 69 6e 64 6f  |f the text windo|
000050a0  77 20 74 6f 20 74 68 65  20 74 65 78 74 20 62 61  |w to the text ba|
000050b0  63 6b 67 72 6f 75 6e 64  20 63 6f 6c 6f 75 72 2e  |ckground colour.|
000050c0  20 54 68 65 20 62 6c 6f  63 6b 20 69 73 20 64 65  | The block is de|
000050d0  66 69 6e 65 64 20 69 6e  20 74 65 72 6d 73 20 6f  |fined in terms o|
000050e0  66 20 6f 66 66 73 65 74  73 20 7b 2f 7d 78 31 7b  |f offsets {/}x1{|
000050f0  2f 7d 2c 7b 2f 7d 79 31  7b 2f 7d 20 61 6e 64 20  |/},{/}y1{/} and |
00005100  7b 2f 7d 78 32 7b 2f 7d  2c 7b 2f 7d 79 32 7b 2f  |{/}x2{/},{/}y2{/|
00005110  7d 20 67 69 76 65 6e 20  66 72 6f 6d 20 62 61 73  |} given from bas|
00005120  65 20 70 6f 73 69 74 69  6f 6e 73 3a 0a 0a 23 57  |e positions:..#W|
00005130  72 61 70 20 6f 66 66 0a  56 61 6c 75 65 09 4d 65  |rap off.Value.Me|
00005140  61 6e 69 6e 67 09 09 09  56 61 6c 75 65 09 4d 65  |aning...Value.Me|
*
00005160  61 6e 69 6e 67 0a 23 4c  69 6e 65 0a 30 09 77 69  |aning.#Line.0.wi|
00005170  6e 64 6f 77 20 74 6f 70  20 6c 65 66 74 09 09 31  |ndow top left..1|
00005180  09 63 75 72 73 6f 72 20  63 6f 6c 75 6d 6e 20 74  |.cursor column t|
00005190  6f 70 09 32 09 77 69 6e  64 6f 77 20 6f 66 66 20  |op.2.window off |
000051a0  74 6f 70 20 72 69 67 68  74 0a 34 09 63 75 72 73  |top right.4.curs|
000051b0  6f 72 20 6c 69 6e 65 20  6c 65 66 74 09 35 09 63  |or line left.5.c|
000051c0  75 72 73 6f 72 20 70 6f  73 74 69 6f 6e 09 09 36  |ursor postion..6|
000051d0  09 63 75 72 73 6f 72 20  6c 69 6e 65 20 6f 66 66  |.cursor line off|
000051e0  20 72 69 67 68 74 0a 38  09 77 69 6e 64 6f 77 20  | right.8.window |
000051f0  62 6f 74 74 6f 6d 20 6c  65 66 74 09 39 09 63 75  |bottom left.9.cu|
00005200  72 73 6f 72 20 63 6f 6c  75 6d 6e 20 62 6f 74 74  |rsor column bott|
00005210  6f 6d 09 31 30 09 77 69  6e 64 6f 77 20 6f 66 66  |om.10.window off|
00005220  20 62 6f 74 74 6f 6d 20  72 69 67 68 74 0a 23 77  | bottom right.#w|
00005230  72 61 70 0a 0a 28 77 68  65 72 65 20 22 6f 66 66  |rap..(where "off|
00005240  22 20 69 73 20 6f 6e 65  20 63 68 61 72 20 62 65  |" is one char be|
00005250  79 6f 6e 64 20 69 6e 20  74 68 65 20 70 6f 73 69  |yond in the posi|
00005260  74 69 76 65 20 58 20 64  69 72 65 63 74 69 6f 6e  |tive X direction|
00005270  29 0a 0a 28 73 65 65 20  3c 56 44 55 20 32 33 2c  |)..(see <VDU 23,|
00005280  31 36 3d 3e 32 33 2c 31  36 3e 20 74 6f 20 63 68  |16=>23,16> to ch|
00005290  61 6e 67 65 20 58 20 61  6e 64 20 59 20 64 69 72  |ange X and Y dir|
000052a0  65 63 74 69 6f 6e 73 2c  20 61 6e 64 20 73 65 6e  |ections, and sen|
000052b0  73 65 20 6f 66 20 70 6f  73 69 74 69 76 65 29 0a  |se of positive).|
000052c0  0a 54 68 65 20 72 65 73  75 6c 74 20 69 73 20 75  |.The result is u|
000052d0  6e 64 65 66 69 6e 65 64  20 69 66 20 61 6e 64 20  |ndefined if and |
000052e0  62 61 73 65 20 2b 20 6f  66 66 73 65 74 20 69 73  |base + offset is|
000052f0  20 6f 75 74 73 69 64 65  20 74 68 65 20 72 61 6e  | outside the ran|
00005300  67 65 20 2d 31 32 38 2c  31 32 37 2e 20 49 66 20  |ge -128,127. If |
00005310  74 68 65 20 65 6e 64 20  70 6f 69 6e 74 20 6c 69  |the end point li|
00005320  65 73 20 62 65 66 6f 72  65 20 74 68 65 20 73 74  |es before the st|
00005330  61 72 74 20 70 6f 69 6e  74 20 6e 6f 20 63 6c 65  |art point no cle|
00005340  61 72 69 6e 67 20 6f 63  63 75 72 73 2e 0a 00 00  |aring occurs....|
00005350  44 41 54 41 2e 01 00 00  56 44 55 20 32 33 2c 39  |DATA....VDU 23,9|
00005360  0a 23 50 61 72 65 6e 74  20 32 33 61 0a 56 44 55  |.#Parent 23a.VDU|
00005370  20 32 33 2c 39 2c 64 75  72 61 74 69 6f 6e 2c 30  | 23,9,duration,0|
00005380  2c 30 2c 30 2c 30 2c 30  2c 30 2c 30 0a 0a 54 68  |,0,0,0,0,0,0..Th|
00005390  69 73 20 56 44 55 20 73  65 74 73 20 74 68 65 20  |is VDU sets the |
000053a0  64 75 72 61 74 69 6f 6e  20 6f 66 20 74 68 65 20  |duration of the |
000053b0  66 69 72 73 74 20 66 6c  61 73 68 20 63 6f 6c 6f  |first flash colo|
000053c0  75 72 20 28 69 6e 20 76  69 64 65 6f 20 66 72 61  |ur (in video fra|
000053d0  6d 65 73 29 2c 20 61 6e  64 20 69 73 20 65 71 75  |mes), and is equ|
000053e0  69 76 61 6c 65 6e 74 20  74 6f 20 3c 4f 53 5f 42  |ivalent to <OS_B|
000053f0  79 74 65 20 39 3d 3e 4f  53 3a 4f 53 5f 42 79 74  |yte 9=>OS:OS_Byt|
00005400  65 30 30 39 3e 2e 20 54  68 65 20 64 75 72 61 74  |e009>. The durat|
00005410  69 6f 6e 20 63 61 6e 20  62 65 20 72 65 61 64 20  |ion can be read |
00005420  77 69 74 68 20 3c 4f 53  5f 42 79 74 65 20 31 39  |with <OS_Byte 19|
00005430  35 3d 3e 4f 53 3a 4f 53  5f 42 79 74 65 31 39 35  |5=>OS:OS_Byte195|
00005440  3e 2e 20 41 20 64 75 72  61 74 69 6f 6e 20 6f 66  |>. A duration of|
00005450  20 30 20 6d 65 61 6e 73  20 64 69 73 70 6c 61 79  | 0 means display|
00005460  20 74 68 65 20 66 69 72  73 74 20 63 6f 6c 6f 75  | the first colou|
00005470  72 20 63 6f 6e 73 74 61  6e 74 6c 79 2e 0a 00 00  |r constantly....|
00005480  44 41 54 41 22 01 00 00  56 44 55 20 32 36 0a 23  |DATA"...VDU 26.#|
00005490  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 56 44 55  |Parent !Root.VDU|
000054a0  20 32 36 20 72 65 73 74  6f 72 65 73 20 74 68 65  | 26 restores the|
000054b0  20 64 65 66 61 75 6c 74  20 77 69 6e 64 6f 77 73  | default windows|
000054c0  2e 0a 0a 54 68 65 20 74  65 78 74 20 61 6e 64 20  |...The text and |
000054d0  67 72 61 70 68 69 63 73  20 77 69 6e 64 6f 77 73  |graphics windows|
000054e0  20 62 6f 74 68 20 72 65  74 75 72 6e 20 74 6f 20  | both return to |
000054f0  64 65 66 61 75 6c 74 20  28 66 75 6c 6c 20 73 63  |default (full sc|
00005500  72 65 65 6e 29 2c 20 74  68 65 20 67 72 61 70 68  |reen), the graph|
00005510  69 63 73 20 6f 72 69 67  69 6e 20 69 73 20 72 65  |ics origin is re|
00005520  73 65 74 20 74 6f 20 30  2c 30 2c 20 74 68 65 20  |set to 0,0, the |
00005530  67 72 61 70 68 69 63 73  20 63 75 72 73 6f 72 20  |graphics cursor |
00005540  6d 6f 76 65 64 20 74 6f  20 30 2c 30 20 61 6e 64  |moved to 0,0 and|
00005550  20 74 68 65 20 74 65 78  74 20 63 75 72 73 6f 72  | the text cursor|
00005560  20 3c 68 6f 6d 65 64 3d  3e 33 30 3e 2e 20 48 61  | <homed=>30>. Ha|
00005570  72 64 77 61 72 65 20 73  63 72 6f 6c 6c 69 6e 67  |rdware scrolling|
00005580  20 6f 66 20 74 68 65 20  74 65 78 74 20 77 69 6e  | of the text win|
00005590  64 6f 77 20 69 73 20 69  6e 69 74 69 61 74 65 64  |dow is initiated|
000055a0  2e 0a 00 00 44 41 54 41  52 00 00 00 56 44 55 20  |....DATAR...VDU |
000055b0  32 37 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |27.#Parent !Root|
000055c0  0a 56 44 55 20 32 37 20  64 6f 65 73 20 6e 6f 74  |.VDU 27 does not|
000055d0  68 69 6e 67 2e 0a 23 20  53 65 65 20 61 6c 73 6f  |hing..# See also|
000055e0  20 75 6e 61 72 79 20 2b  20 69 6e 20 70 65 72 6c  | unary + in perl|
000055f0  2e 20 3a 2d 29 0a 00 00  44 41 54 41 cd 00 00 00  |. :-)...DATA....|
00005600  56 44 55 20 33 0a 23 50  61 72 65 6e 74 20 21 52  |VDU 3.#Parent !R|
00005610  6f 6f 74 0a 56 44 55 20  33 20 64 69 73 61 62 6c  |oot.VDU 3 disabl|
00005620  65 73 20 74 68 65 20 70  72 69 6e 74 65 72 20 73  |es the printer s|
00005630  74 72 65 61 6d 2e 0a 0a  3c 56 44 55 20 32 3d 3e  |tream...<VDU 2=>|
00005640  32 3e 20 69 73 20 75 73  65 64 20 74 6f 20 65 6e  |2> is used to en|
00005650  61 62 6c 65 20 74 68 65  20 70 72 69 6e 74 65 72  |able the printer|
00005660  20 73 74 72 65 61 6d 2c  20 61 6e 64 20 3c 4f 53  | stream, and <OS|
00005670  5f 42 79 74 65 20 31 31  37 3d 3e 4f 53 3a 4f 53  |_Byte 117=>OS:OS|
00005680  5f 42 79 74 65 31 31 37  3e 20 63 61 6e 20 62 65  |_Byte117> can be|
00005690  20 75 73 65 64 20 74 6f  20 72 65 61 64 20 77 68  | used to read wh|
000056a0  65 74 68 65 72 20 74 68  65 20 70 72 69 6e 74 65  |ether the printe|
000056b0  72 20 73 74 72 65 61 6d  20 69 73 20 65 6e 61 62  |r stream is enab|
000056c0  6c 65 64 2e 0a 00 00 00  44 41 54 41 f6 05 00 00  |led.....DATA....|
000056d0  45 43 46 20 70 61 74 74  65 72 6e 20 64 65 66 61  |ECF pattern defa|
000056e0  75 6c 74 73 0a 23 50 61  72 65 6e 74 20 32 33 2c  |ults.#Parent 23,|
000056f0  31 31 0a 4d 6f 64 65 20  30 3a 0a 0a 31 20 52 65  |11.Mode 0:..1 Re|
00005700  64 20 4f 72 61 6e 67 65  09 09 32 20 4f 72 61 6e  |d Orange..2 Oran|
00005710  67 65 09 09 33 20 59 65  6c 2d 4f 72 61 6e 67 65  |ge..3 Yel-Orange|
00005720  09 09 34 20 43 72 65 61  6d 0a 7b 66 43 6f 64 65  |..4 Cream.{fCode|
00005730  7d 31 31 30 30 31 31 30  30 7b 66 7d 09 7b 66 43  |}11001100{f}.{fC|
00005740  6f 64 65 7d 31 31 31 31  30 30 30 30 7b 66 7d 09  |ode}11110000{f}.|
00005750  7b 66 43 6f 64 65 7d 31  31 31 31 31 31 31 31 7b  |{fCode}11111111{|
00005760  66 7d 09 7b 66 43 6f 64  65 7d 30 30 30 30 30 30  |f}.{fCode}000000|
00005770  31 31 7b 66 7d 0a 7b 66  43 6f 64 65 7d 30 30 30  |11{f}.{fCode}000|
00005780  30 30 30 30 30 7b 66 7d  09 7b 66 43 6f 64 65 7d  |00000{f}.{fCode}|
00005790  30 30 30 30 31 31 31 31  7b 66 7d 09 7b 66 43 6f  |00001111{f}.{fCo|
000057a0  64 65 7d 30 30 31 31 30  30 31 31 7b 66 7d 09 7b  |de}00110011{f}.{|
000057b0  66 43 6f 64 65 7d 30 30  30 30 31 31 30 30 7b 66  |fCode}00001100{f|
000057c0  7d 0a 7b 66 43 6f 64 65  7d 31 31 30 30 31 31 30  |}.{fCode}1100110|
000057d0  30 7b 66 7d 09 7b 66 43  6f 64 65 7d 31 31 31 31  |0{f}.{fCode}1111|
000057e0  30 30 30 30 7b 66 7d 09  7b 66 43 6f 64 65 7d 31  |0000{f}.{fCode}1|
000057f0  31 31 31 31 31 31 31 7b  66 7d 09 7b 66 43 6f 64  |1111111{f}.{fCod|
00005800  65 7d 30 30 30 30 30 30  31 31 7b 66 7d 0a 7b 66  |e}00000011{f}.{f|
00005810  43 6f 64 65 7d 30 30 30  30 30 30 30 30 7b 66 7d  |Code}00000000{f}|
00005820  09 7b 66 43 6f 64 65 7d  30 30 31 31 30 30 31 31  |.{fCode}00110011|
00005830  7b 66 7d 09 7b 66 43 6f  64 65 7d 30 31 30 31 30  |{f}.{fCode}01010|
00005840  31 30 31 7b 66 7d 09 7b  66 43 6f 64 65 7d 31 30  |101{f}.{fCode}10|
00005850  30 30 31 30 30 30 7b 66  7d 0a 0a 4f 74 68 65 72  |001000{f}..Other|
00005860  20 32 20 63 6f 6c 6f 75  72 20 6d 6f 64 65 73 3a  | 2 colour modes:|
00005870  0a 0a 31 20 44 61 72 6b  20 47 72 65 79 09 09 32  |..1 Dark Grey..2|
00005880  20 47 72 65 79 09 09 09  33 20 4c 69 67 68 74 20  | Grey...3 Light |
00005890  47 72 65 79 09 09 34 20  48 61 74 63 68 69 6e 67  |Grey..4 Hatching|
000058a0  0a 7b 66 43 6f 64 65 7d  31 30 31 30 31 30 31 30  |.{fCode}10101010|
000058b0  7b 66 7d 09 7b 66 43 6f  64 65 7d 31 31 30 30 31  |{f}.{fCode}11001|
000058c0  31 30 30 7b 66 7d 09 7b  66 43 6f 64 65 7d 31 31  |100{f}.{fCode}11|
000058d0  31 31 31 31 31 31 7b 66  7d 09 7b 66 43 6f 64 65  |111111{f}.{fCode|
000058e0  7d 30 30 30 31 30 30 30  31 7b 66 7d 0a 7b 66 43  |}00010001{f}.{fC|
000058f0  6f 64 65 7d 30 30 30 30  30 30 30 30 7b 66 7d 09  |ode}00000000{f}.|
00005900  7b 66 43 6f 64 65 7d 30  30 31 31 30 30 31 31 7b  |{fCode}00110011{|
00005910  66 7d 09 7b 66 43 6f 64  65 7d 30 31 30 31 30 31  |f}.{fCode}010101|
00005920  30 31 7b 66 7d 09 7b 66  43 6f 64 65 7d 30 30 31  |01{f}.{fCode}001|
00005930  30 30 30 31 30 7b 66 7d  0a 7b 66 43 6f 64 65 7d  |00010{f}.{fCode}|
00005940  31 30 31 30 31 30 31 30  7b 66 7d 09 7b 66 43 6f  |10101010{f}.{fCo|
00005950  64 65 7d 31 31 30 30 31  31 30 30 7b 66 7d 09 7b  |de}11001100{f}.{|
00005960  66 43 6f 64 65 7d 31 31  31 31 31 31 31 31 7b 66  |fCode}11111111{f|
00005970  7d 09 7b 66 43 6f 64 65  7d 30 31 30 30 30 31 30  |}.{fCode}0100010|
00005980  30 7b 66 7d 0a 7b 66 43  6f 64 65 7d 30 30 30 30  |0{f}.{fCode}0000|
00005990  30 30 30 30 7b 66 7d 09  7b 66 43 6f 64 65 7d 30  |0000{f}.{fCode}0|
000059a0  30 31 31 30 30 31 31 7b  66 7d 09 7b 66 43 6f 64  |0110011{f}.{fCod|
000059b0  65 7d 30 31 30 31 30 31  30 31 7b 66 7d 09 7b 66  |e}01010101{f}.{f|
000059c0  43 6f 64 65 7d 31 30 30  30 31 30 30 30 7b 66 7d  |Code}10001000{f}|
000059d0  0a 0a 34 20 63 6f 6c 6f  75 72 20 6d 6f 64 65 73  |..4 colour modes|
000059e0  3a 0a 0a 31 20 52 65 64  20 4f 72 61 6e 67 65 09  |:..1 Red Orange.|
000059f0  32 20 4f 72 61 6e 67 65  09 33 20 59 65 6c 2d 4f  |2 Orange.3 Yel-O|
00005a00  72 61 6e 67 65 09 34 20  43 72 65 61 6d 0a 7b 66  |range.4 Cream.{f|
00005a10  43 6f 64 65 7d 32 31 32  31 7b 66 7d 09 7b 66 43  |Code}2121{f}.{fC|
00005a20  6f 64 65 7d 32 31 32 31  7b 66 7d 09 7b 66 43 6f  |ode}2121{f}.{fCo|
00005a30  64 65 7d 32 32 32 32 7b  66 7d 09 7b 66 43 6f 64  |de}2222{f}.{fCod|
00005a40  65 7d 32 33 32 33 7b 66  7d 0a 7b 66 43 6f 64 65  |e}2323{f}.{fCode|
00005a50  7d 31 31 31 31 7b 66 7d  09 7b 66 43 6f 64 65 7d  |}1111{f}.{fCode}|
00005a60  31 32 31 32 7b 66 7d 09  7b 66 43 6f 64 65 7d 31  |1212{f}.{fCode}1|
00005a70  32 31 32 7b 66 7d 09 7b  66 43 6f 64 65 7d 33 32  |212{f}.{fCode}32|
00005a80  33 32 7b 66 7d 0a 0a 31  36 20 63 6f 6c 6f 75 72  |32{f}..16 colour|
00005a90  20 6d 6f 64 65 73 3a 0a  0a 31 20 4f 72 61 6e 67  | modes:..1 Orang|
00005aa0  65 09 32 20 50 69 6e 6b  20 09 09 33 20 59 65 6c  |e.2 Pink ..3 Yel|
00005ab0  2d 47 72 65 65 6e 09 34  20 43 72 65 61 6d 0a 7b  |-Green.4 Cream.{|
00005ac0  66 43 6f 64 65 7d 32 31  7b 66 7d 09 7b 66 43 6f  |fCode}21{f}.{fCo|
00005ad0  64 65 7d 36 31 7b 66 7d  09 7b 66 43 6f 64 65 7d  |de}61{f}.{fCode}|
00005ae0  33 32 7b 66 7d 09 7b 66  43 6f 64 65 7d 33 37 7b  |32{f}.{fCode}37{|
00005af0  66 7d 0a 7b 66 43 6f 64  65 7d 31 32 7b 66 7d 09  |f}.{fCode}12{f}.|
00005b00  7b 66 43 6f 64 65 7d 31  36 7b 66 7d 09 7b 66 43  |{fCode}16{f}.{fC|
00005b10  6f 64 65 7d 32 33 7b 66  7d 09 7b 66 43 6f 64 65  |ode}23{f}.{fCode|
00005b20  7d 37 33 7b 66 7d 0a 0a  32 35 36 20 63 6f 6c 6f  |}73{f}..256 colo|
00005b30  75 72 20 6d 6f 64 65 73  3a 0a 0a 23 74 61 62 0a  |ur modes:..#tab.|
00005b40  31 20 47 72 65 79 09 09  20 09 09 32 20 53 6c 61  |1 Grey.. ..2 Sla|
00005b50  74 65 20 09 20 09 09 33  20 47 72 65 65 6e 09 09  |te . ..3 Green..|
00005b60  20 09 09 34 20 50 69 6e  6b 09 09 20 0a 7b 66 43  | ..4 Pink.. .{fC|
00005b70  6f 64 65 7d 33 46 7b 66  7d 09 7b 66 43 6f 64 65  |ode}3F{f}.{fCode|
00005b80  7d 30 30 7b 66 7d 09 7b  66 43 6f 64 65 7d 30 7b  |}00{f}.{fCode}0{|
00005b90  66 7d 09 7b 66 43 6f 64  65 7d 43 30 7b 66 7d 09  |f}.{fCode}C0{f}.|
00005ba0  7b 66 43 6f 64 65 7d 34  7b 66 7d 09 7b 66 43 6f  |{fCode}4{f}.{fCo|
00005bb0  64 65 7d 43 30 7b 66 7d  09 7b 66 43 6f 64 65 7d  |de}C0{f}.{fCode}|
00005bc0  33 42 7b 66 7d 09 7b 66  43 6f 64 65 7d 43 30 7b  |3B{f}.{fCode}C0{|
00005bd0  66 7d 0a 09 09 7b 66 43  6f 64 65 7d 34 30 7b 66  |f}...{fCode}40{f|
00005be0  7d 09 20 09 09 7b 66 43  6f 64 65 7d 38 30 7b 66  |}. ..{fCode}80{f|
*
00005c00  7d 09 20 09 09 7b 66 43  6f 64 65 7d 34 30 7b 66  |}. ..{fCode}40{f|
00005c10  7d 0a 09 09 7b 66 43 6f  64 65 7d 38 30 7b 66 7d  |}...{fCode}80{f}|
00005c20  09 20 09 09 7b 66 43 6f  64 65 7d 34 30 7b 66 7d  |. ..{fCode}40{f}|
*
00005c40  09 20 09 09 7b 66 43 6f  64 65 7d 38 30 7b 66 7d  |. ..{fCode}80{f}|
00005c50  0a 09 09 7b 66 43 6f 64  65 7d 43 30 7b 66 7d 09  |...{fCode}C0{f}.|
00005c60  20 09 09 7b 66 43 6f 64  65 7d 30 30 7b 66 7d 09  | ..{fCode}00{f}.|
*
00005c80  20 09 09 7b 66 43 6f 64  65 7d 43 30 7b 66 7d 0a  | ..{fCode}C0{f}.|
00005c90  0a 52 65 70 65 61 74 20  72 6f 77 73 20 73 68 6f  |.Repeat rows sho|
00005ca0  77 6e 20 32 20 6f 72 20  34 20 74 69 6d 65 73 20  |wn 2 or 4 times |
00005cb0  61 73 20 6e 65 63 65 73  73 61 72 79 2e 0a 00 00  |as necessary....|
00005cc0  44 41 54 41 2f 04 00 00  53 63 72 6f 6c 6c 20 70  |DATA/...Scroll p|
00005cd0  72 6f 74 65 63 74 69 6f  6e 0a 23 50 61 72 65 6e  |rotection.#Paren|
00005ce0  74 20 32 33 2c 31 36 0a  4e 6f 72 6d 61 6c 6c 79  |t 23,16.Normally|
00005cf0  20 69 6e 20 3c 56 44 55  20 34 3d 3e 34 3e 20 6d  | in <VDU 4=>4> m|
00005d00  6f 64 65 2c 20 70 72 69  6e 74 69 6e 67 20 61 20  |ode, printing a |
00005d10  63 68 61 72 61 63 74 65  72 20 61 74 20 74 68 65  |character at the|
00005d20  20 65 6e 64 20 6f 66 20  74 68 65 20 6c 69 6e 65  | end of the line|
00005d30  20 69 6d 6d 65 64 69 61  74 65 6c 79 20 6d 6f 76  | immediately mov|
00005d40  65 73 20 74 68 65 20 63  75 72 73 6f 72 20 74 6f  |es the cursor to|
00005d50  20 74 68 65 20 6e 65 67  61 74 69 76 65 20 65 64  | the negative ed|
00005d60  67 65 20 6f 66 20 74 68  65 20 74 65 78 74 20 77  |ge of the text w|
00005d70  69 6e 64 6f 77 20 61 6e  64 20 64 6f 77 6e 20 6f  |indow and down o|
00005d80  6e 65 20 6c 69 6e 65 20  69 6e 20 74 68 65 20 70  |ne line in the p|
00005d90  6f 73 69 74 69 76 65 20  58 20 64 69 72 65 63 74  |ositive X direct|
00005da0  69 6f 6e 2e 0a 0a 57 69  74 68 20 73 63 72 6f 6c  |ion...With scrol|
00005db0  6c 20 70 72 6f 74 65 63  74 69 6f 6e 20 65 6e 61  |l protection ena|
00005dc0  62 6c 65 64 20 74 68 69  73 20 63 75 72 73 6f 72  |bled this cursor|
00005dd0  20 6d 6f 76 65 6d 65 6e  74 20 69 73 20 64 65 66  | movement is def|
00005de0  65 72 72 65 64 20 2d 20  61 20 22 70 65 6e 64 69  |erred - a "pendi|
00005df0  6e 67 20 6e 65 77 6c 69  6e 65 22 20 69 73 20 67  |ng newline" is g|
00005e00  65 6e 65 72 61 74 65 64  2c 20 77 68 69 63 68 20  |enerated, which |
00005e10  69 73 20 6f 6e 6c 79 20  65 78 65 63 75 74 65 64  |is only executed|
00005e20  20 6a 75 73 74 20 62 65  66 6f 72 65 20 74 68 65  | just before the|
00005e30  20 6e 65 78 74 20 63 68  61 72 61 63 74 65 72 20  | next character |
00005e40  69 73 20 70 72 69 6e 74  65 64 2c 20 2a 70 72 6f  |is printed, *pro|
00005e50  76 69 64 69 6e 67 2a 20  74 68 61 74 20 69 74 20  |viding* that it |
00005e60  68 61 73 20 6e 6f 74 20  62 65 65 6e 20 64 65 6c  |has not been del|
00005e70  65 74 65 64 20 62 79 20  61 6e 20 69 6e 74 65 72  |eted by an inter|
00005e80  76 65 6e 69 6e 67 20 56  44 55 20 63 6f 6d 6d 61  |vening VDU comma|
00005e90  6e 64 2e 20 46 6f 72 20  65 78 61 6d 70 6c 65 2c  |nd. For example,|
00005ea0  20 3c 56 44 55 20 31 32  37 3d 3e 31 32 37 3e 20  | <VDU 127=>127> |
00005eb0  72 65 63 65 69 76 65 64  20 64 75 72 69 6e 67 20  |received during |
00005ec0  70 65 6e 64 69 6e 67 20  6e 65 77 6c 69 6e 65 20  |pending newline |
00005ed0  77 6f 75 6c 64 20 63 61  75 73 65 20 74 68 65 20  |would cause the |
00005ee0  70 65 6e 64 69 6e 67 20  6e 65 77 6c 69 6e 65 20  |pending newline |
00005ef0  74 6f 20 62 65 20 64 65  6c 65 74 65 64 2c 20 77  |to be deleted, w|
00005f00  68 65 72 65 61 73 20 3c  56 44 55 20 39 3d 3e 39  |hereas <VDU 9=>9|
00005f10  3e 20 77 6f 75 6c 64 20  65 78 65 63 75 74 65 20  |> would execute |
00005f20  69 74 2e 0a 0a 54 68 65  20 75 70 73 68 6f 74 20  |it...The upshot |
00005f30  6f 66 20 62 65 69 6e 67  20 75 6e 61 77 61 72 65  |of being unaware|
00005f40  20 6f 66 20 74 68 65 20  73 74 61 74 65 20 6f 66  | of the state of|
00005f50  20 73 63 72 6f 6c 6c 20  70 72 6f 74 65 63 74 69  | scroll protecti|
00005f60  6f 6e 20 69 73 20 74 68  61 74 20 74 68 65 20 63  |on is that the c|
00005f70  75 72 73 6f 72 20 69 73  6e 27 74 20 61 6c 77 61  |ursor isn't alwa|
00005f80  79 73 20 6f 6e 20 74 68  65 20 6c 69 6e 65 20 74  |ys on the line t|
00005f90  68 61 74 20 79 6f 75 20  65 78 70 65 63 74 20 69  |hat you expect i|
00005fa0  74 20 74 6f 20 62 65 20  6f 6e 2c 20 77 68 69 63  |t to be on, whic|
00005fb0  68 20 63 61 6e 20 70 6c  61 79 20 68 61 76 6f 63  |h can play havoc|
00005fc0  20 77 69 74 68 20 73 6f  6d 65 20 63 75 72 73 6f  | with some curso|
00005fd0  72 20 6d 6f 76 65 6d 65  6e 74 20 63 6f 6d 6d 61  |r movement comma|
00005fe0  6e 64 73 20 28 7b 2f 7d  65 2e 67 2e 7b 2f 7d 20  |nds ({/}e.g.{/} |
00005ff0  3c 63 61 72 72 69 61 67  65 20 72 65 74 75 72 6e  |<carriage return|
00006000  3d 3e 31 33 3e 29 2e 0a  0a 53 63 72 6f 6c 6c 20  |=>13>)...Scroll |
00006010  70 72 6f 74 65 63 74 69  6f 6e 20 69 73 20 65 6e  |protection is en|
00006020  61 62 6c 65 64 2f 64 69  73 61 62 6c 65 64 20 77  |abled/disabled w|
00006030  69 74 68 20 3c 56 44 55  20 32 33 2c 31 36 3d 3e  |ith <VDU 23,16=>|
00006040  32 33 2c 31 36 3e 20 2d  20 74 68 65 72 65 20 69  |23,16> - there i|
00006050  73 20 6e 6f 20 77 61 79  20 74 6f 20 72 65 61 64  |s no way to read|
00006060  20 74 68 65 20 63 75 72  72 65 6e 74 20 73 74 61  | the current sta|
00006070  74 65 2e 0a 23 20 53 69  6c 6c 79 20 6f 6d 69 73  |te..# Silly omis|
00006080  73 69 6f 6e 0a 0a 4e 6f  74 65 3a 20 54 68 65 20  |sion..Note: The |
00006090  64 65 66 61 75 6c 74 20  73 74 61 74 65 20 6f 66  |default state of|
000060a0  20 73 63 72 6f 6c 6c 20  70 72 6f 74 65 63 74 69  | scroll protecti|
000060b0  6f 6e 20 69 73 20 6f 66  66 2c 20 62 75 74 20 74  |on is off, but t|
000060c0  68 65 20 64 65 73 6b 74  6f 70 20 74 75 72 6e 73  |he desktop turns|
000060d0  20 69 74 20 2a 6f 6e 2a  20 61 73 20 73 6f 6f 6e  | it *on* as soon|
000060e0  20 61 73 20 69 74 20 69  73 20 72 75 6e 2e 0a 00  | as it is run...|
000060f0  44 41 54 41 c1 01 00 00  56 44 55 20 33 30 0a 23  |DATA....VDU 30.#|
00006100  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 56 44 55  |Parent !Root.VDU|
00006110  20 33 30 20 6d 6f 76 65  73 20 74 68 65 20 63 75  | 30 moves the cu|
00006120  72 73 6f 72 20 74 6f 20  69 74 73 20 68 6f 6d 65  |rsor to its home|
00006130  20 70 6f 73 69 74 69 6f  6e 2e 0a 0a 54 68 65 20  | position...The |
00006140  68 6f 6d 65 20 70 6f 73  69 74 69 6f 6e 20 69 73  |home position is|
00006150  20 75 73 75 61 6c 6c 79  20 74 68 65 20 74 6f 70  | usually the top|
00006160  20 6c 65 66 74 20 6f 66  20 74 68 65 20 77 69 6e  | left of the win|
00006170  64 6f 77 2c 20 62 75 74  20 74 68 69 73 20 6d 61  |dow, but this ma|
00006180  79 20 62 65 20 61 6c 74  65 72 65 64 20 77 69 74  |y be altered wit|
00006190  68 20 3c 56 44 55 20 32  33 2c 31 36 3d 3e 32 33  |h <VDU 23,16=>23|
000061a0  2c 31 36 3e 2e 0a 0a 49  6e 20 3c 56 44 55 20 34  |,16>...In <VDU 4|
000061b0  3d 3e 34 3e 20 6d 6f 64  65 20 74 68 65 20 74 65  |=>4> mode the te|
000061c0  78 74 20 63 75 72 73 6f  72 20 69 73 20 68 6f 6d  |xt cursor is hom|
000061d0  65 64 2c 20 69 6e 20 3c  56 44 55 20 35 3d 3e 35  |ed, in <VDU 5=>5|
000061e0  3e 20 6d 6f 64 65 20 74  68 65 20 67 72 61 70 68  |> mode the graph|
000061f0  69 63 73 20 63 75 72 73  6f 72 2e 20 54 68 65 20  |ics cursor. The |
00006200  61 63 74 75 61 6c 20 6c  6f 63 61 74 69 6f 6e 20  |actual location |
00006210  6f 66 20 74 68 65 20 67  72 61 70 68 69 63 73 20  |of the graphics |
00006220  6d 6f 64 65 20 68 6f 6d  65 20 70 6f 73 69 74 69  |mode home positi|
00006230  6f 6e 20 6d 61 79 20 62  65 20 75 70 20 74 6f 20  |on may be up to |
00006240  28 63 68 61 72 20 73 69  7a 65 20 2d 20 31 29 20  |(char size - 1) |
00006250  70 69 78 65 6c 73 20 6f  75 74 20 66 72 6f 6d 20  |pixels out from |
00006260  74 68 65 20 63 6f 72 6e  65 72 20 69 6e 20 6f 6e  |the corner in on|
00006270  65 20 6f 72 20 62 6f 74  68 20 61 78 65 73 20 64  |e or both axes d|
00006280  65 70 65 6e 64 69 6e 67  20 6f 6e 20 74 68 65 20  |epending on the |
00006290  64 69 72 65 63 74 69 6f  6e 20 6f 66 20 63 68 61  |direction of cha|
000062a0  72 61 63 74 65 72 20 70  72 69 6e 74 69 6e 67 2e  |racter printing.|
000062b0  0a 00 00 00 44 41 54 41  58 03 00 00 56 44 55 20  |....DATAX...VDU |
000062c0  34 0a 23 50 61 72 65 6e  74 20 21 52 6f 6f 74 0a  |4.#Parent !Root.|
000062d0  56 44 55 20 34 20 73 70  6c 69 74 73 20 74 68 65  |VDU 4 splits the|
000062e0  20 74 65 78 74 20 61 6e  64 20 67 72 61 70 68 69  | text and graphi|
000062f0  63 73 20 63 75 72 73 6f  72 73 2e 20 54 68 69 73  |cs cursors. This|
00006300  20 69 73 20 6b 6e 6f 77  6e 20 61 73 20 56 44 55  | is known as VDU|
00006310  20 34 20 6d 6f 64 65 2c  20 61 6e 64 20 69 73 20  | 4 mode, and is |
00006320  74 68 65 20 64 65 66 61  75 6c 74 20 56 44 55 20  |the default VDU |
00006330  64 72 69 76 65 72 20 73  74 61 74 65 2e 0a 0a 54  |driver state...T|
00006340  68 65 20 74 65 78 74 20  61 6e 64 20 67 72 61 70  |he text and grap|
00006350  68 69 63 73 20 63 75 72  73 6f 72 73 20 61 72 65  |hics cursors are|
00006360  20 6a 6f 69 6e 65 64 20  77 69 74 68 20 3c 56 44  | joined with <VD|
00006370  55 20 35 3d 3e 35 3e 2e  0a 0a 49 6e 20 56 44 55  |U 5=>5>...In VDU|
00006380  20 34 20 6d 6f 64 65 20  74 65 78 74 20 69 73 20  | 4 mode text is |
00006390  70 72 69 6e 74 65 64 20  61 74 20 74 68 65 20 63  |printed at the c|
000063a0  75 72 72 65 6e 74 20 74  65 78 74 20 63 75 72 73  |urrent text curs|
000063b0  6f 72 20 70 6f 73 69 74  69 6f 6e 20 77 69 74 68  |or position with|
000063c0  20 74 68 65 20 63 75 72  72 65 6e 74 20 74 65 78  | the current tex|
000063d0  74 20 66 6f 72 65 67 72  6f 75 6e 64 20 61 6e 64  |t foreground and|
000063e0  20 62 61 63 6b 67 72 6f  75 6e 64 20 63 6f 6c 6f  | background colo|
000063f0  75 72 73 2e 20 42 79 20  64 65 66 61 75 6c 74 2c  |urs. By default,|
00006400  20 61 66 74 65 72 20 65  61 63 68 20 63 68 61 72  | after each char|
00006410  61 63 74 65 72 20 69 73  20 70 6c 6f 74 74 65 64  |acter is plotted|
00006420  20 74 68 65 20 74 65 78  74 20 63 75 72 73 6f 72  | the text cursor|
00006430  20 69 73 20 6d 6f 76 65  64 20 69 6e 20 74 68 65  | is moved in the|
00006440  20 70 6f 73 69 74 69 76  65 20 58 20 64 69 72 65  | positive X dire|
00006450  63 74 69 6f 6e 20 28 64  65 66 61 75 6c 74 20 72  |ction (default r|
00006460  69 67 68 74 29 2c 20 6d  6f 76 69 6e 67 20 74 6f  |ight), moving to|
00006470  20 74 68 65 20 6c 65 66  74 20 6f 66 20 61 20 6e  | the left of a n|
00006480  65 77 20 72 6f 77 20 77  68 65 6e 20 74 68 65 20  |ew row when the |
00006490  72 69 67 68 74 20 73 69  64 65 20 6f 66 20 74 68  |right side of th|
000064a0  65 20 74 65 78 74 20 77  69 6e 64 6f 77 20 69 73  |e text window is|
000064b0  20 72 65 61 63 68 65 64  2c 20 73 63 72 6f 6c 6c  | reached, scroll|
000064c0  69 6e 67 20 77 68 65 6e  20 74 68 65 20 22 62 6f  |ing when the "bo|
000064d0  74 74 6f 6d 22 20 69 73  20 72 65 61 63 68 65 64  |ttom" is reached|
000064e0  2e 20 41 6c 6c 20 6f 66  20 74 68 69 73 20 63 61  |. All of this ca|
000064f0  6e 20 62 65 20 61 6c 74  65 72 65 64 20 77 69 74  |n be altered wit|
00006500  68 20 3c 56 44 55 20 32  33 2c 31 36 3d 3e 32 33  |h <VDU 23,16=>23|
00006510  2c 31 36 3e 2e 20 54 68  65 20 74 65 78 74 20 63  |,16>. The text c|
00006520  75 72 73 6f 72 20 69 73  20 6e 6f 72 6d 61 6c 6c  |ursor is normall|
00006530  79 20 64 69 73 70 6c 61  79 65 64 20 28 75 6e 6c  |y displayed (unl|
00006540  65 73 73 20 69 74 20 69  73 20 64 69 73 61 62 6c  |ess it is disabl|
00006550  65 64 20 77 69 74 68 20  3c 56 44 55 20 32 33 2c  |ed with <VDU 23,|
00006560  31 3d 3e 32 33 2c 31 3e  2e 29 0a 0a 3c 4f 53 5f  |1=>23,1>.)..<OS_|
00006570  42 79 74 65 20 31 31 37  3d 3e 4f 53 3a 4f 53 5f  |Byte 117=>OS:OS_|
00006580  42 79 74 65 31 31 37 3e  20 63 61 6e 20 62 65 20  |Byte117> can be |
00006590  75 73 65 64 20 74 6f 20  66 69 6e 64 20 6f 75 74  |used to find out|
000065a0  20 77 68 65 74 68 65 72  20 74 68 65 20 63 75 72  | whether the cur|
000065b0  73 6f 72 73 20 61 72 65  20 73 70 6c 69 74 20 6f  |sors are split o|
000065c0  72 20 6a 6f 69 6e 65 64  2e 0a 0a 56 44 55 20 34  |r joined...VDU 4|
000065d0  20 6d 6f 64 65 20 69 73  20 66 61 73 74 65 72 20  | mode is faster |
000065e0  74 68 61 6e 20 56 44 55  20 35 20 6d 6f 64 65 2c  |than VDU 5 mode,|
000065f0  20 61 6e 64 20 61 6c 6c  6f 77 73 20 63 75 72 73  | and allows curs|
00006600  6f 72 20 65 64 69 74 69  6e 67 2e 0a 44 41 54 41  |or editing..DATA|
00006610  18 04 00 00 56 44 55 20  35 0a 23 50 61 72 65 6e  |....VDU 5.#Paren|
00006620  74 20 21 52 6f 6f 74 0a  56 44 55 20 35 20 6a 6f  |t !Root.VDU 5 jo|
00006630  69 6e 73 20 74 68 65 20  74 65 78 74 20 61 6e 64  |ins the text and|
00006640  20 67 72 61 70 68 69 63  73 20 63 75 72 73 6f 72  | graphics cursor|
00006650  73 2e 20 54 68 69 73 20  69 73 20 6b 6e 6f 77 6e  |s. This is known|
00006660  20 61 73 20 56 44 55 20  35 20 6d 6f 64 65 2e 0a  | as VDU 5 mode..|
00006670  0a 54 68 65 20 74 65 78  74 20 61 6e 64 20 67 72  |.The text and gr|
00006680  61 70 68 69 63 73 20 63  75 72 73 6f 72 73 20 61  |aphics cursors a|
00006690  72 65 20 73 70 6c 69 74  20 77 69 74 68 20 3c 56  |re split with <V|
000066a0  44 55 20 34 3d 3e 34 3e  2e 20 56 44 55 20 34 20  |DU 4=>4>. VDU 4 |
000066b0  6d 6f 64 65 20 69 73 20  74 68 65 20 64 65 66 61  |mode is the defa|
000066c0  75 6c 74 20 56 44 55 20  64 72 69 76 65 72 20 73  |ult VDU driver s|
000066d0  74 61 74 65 2e 0a 0a 49  6e 20 56 44 55 20 35 20  |tate...In VDU 5 |
000066e0  6d 6f 64 65 20 74 65 78  74 20 69 73 20 70 72 69  |mode text is pri|
000066f0  6e 74 65 64 20 61 74 20  74 68 65 20 63 75 72 72  |nted at the curr|
00006700  65 6e 74 20 67 72 61 70  68 69 63 73 20 63 75 72  |ent graphics cur|
00006710  73 6f 72 20 70 6f 73 69  74 69 6f 6e 20 77 69 74  |sor position wit|
00006720  68 20 74 68 65 20 63 75  72 72 65 6e 74 20 67 72  |h the current gr|
00006730  61 70 68 69 63 73 20 66  6f 72 65 67 72 6f 75 6e  |aphics foregroun|
00006740  64 20 63 6f 6c 6f 75 72  20 61 6e 64 20 61 63 74  |d colour and act|
00006750  69 6f 6e 20 2d 20 62 61  63 6b 67 72 6f 75 6e 64  |ion - background|
00006760  20 70 69 78 65 6c 73 20  69 6e 20 74 68 65 20 63  | pixels in the c|
00006770  68 61 72 61 63 74 65 72  20 73 68 61 70 65 20 61  |haracter shape a|
00006780  72 65 20 6e 6f 74 20 70  6c 6f 74 74 65 64 2e 20  |re not plotted. |
00006790  42 79 20 64 65 66 61 75  6c 74 2c 20 61 66 74 65  |By default, afte|
000067a0  72 20 65 61 63 68 20 63  68 61 72 61 63 74 65 72  |r each character|
000067b0  20 69 73 20 70 6c 6f 74  74 65 64 20 74 68 65 20  | is plotted the |
000067c0  67 72 61 70 68 69 63 73  20 63 75 72 73 6f 72 20  |graphics cursor |
000067d0  69 73 20 6d 6f 76 65 64  20 69 6e 20 74 68 65 20  |is moved in the |
000067e0  70 6f 73 69 74 69 76 65  20 58 20 64 69 72 65 63  |positive X direc|
000067f0  74 69 6f 6e 20 28 64 65  66 61 75 6c 74 20 72 69  |tion (default ri|
00006800  67 68 74 29 2c 20 6d 6f  76 69 6e 67 20 74 6f 20  |ght), moving to |
00006810  74 68 65 20 6c 65 66 74  20 6f 66 20 61 20 6e 65  |the left of a ne|
00006820  77 20 72 6f 77 20 77 68  65 6e 20 74 68 65 20 72  |w row when the r|
00006830  69 67 68 74 20 73 69 64  65 20 6f 66 20 74 68 65  |ight side of the|
00006840  20 67 72 61 70 68 69 63  73 20 77 69 6e 64 6f 77  | graphics window|
00006850  20 69 73 20 72 65 61 63  68 65 64 2c 20 74 68 65  | is reached, the|
00006860  20 63 75 72 73 6f 72 20  77 72 61 70 70 69 6e 67  | cursor wrapping|
00006870  20 74 6f 20 74 68 65 20  64 69 61 67 6f 6e 61 6c  | to the diagonal|
00006880  6c 79 20 6f 70 70 6f 73  69 74 65 20 28 64 65 66  |ly opposite (def|
00006890  61 75 6c 74 20 74 6f 70  20 6c 65 66 74 29 20 63  |ault top left) c|
000068a0  6f 72 6e 65 72 20 77 68  65 6e 20 74 68 65 20 22  |orner when the "|
000068b0  62 6f 74 74 6f 6d 22 20  69 73 20 72 65 61 63 68  |bottom" is reach|
000068c0  65 64 2e 20 41 6c 6c 20  6f 66 20 74 68 69 73 20  |ed. All of this |
000068d0  63 61 6e 20 62 65 20 61  6c 74 65 72 65 64 20 77  |can be altered w|
000068e0  69 74 68 20 3c 56 44 55  20 32 33 2c 31 36 3d 3e  |ith <VDU 23,16=>|
000068f0  32 33 2c 31 36 3e 2e 20  54 65 78 74 20 70 6f 73  |23,16>. Text pos|
00006900  69 74 69 6f 6e 20 69 73  20 6e 6f 74 20 72 65 73  |ition is not res|
00006910  74 72 69 63 74 65 64 20  74 6f 20 63 68 61 72 61  |tricted to chara|
00006920  63 74 65 72 20 63 65 6c  6c 20 70 6f 73 69 74 69  |cter cell positi|
00006930  6f 6e 73 2c 20 61 6e 64  20 74 65 78 74 20 73 69  |ons, and text si|
00006940  7a 65 20 61 6e 64 20 73  70 61 63 69 6e 67 20 63  |ze and spacing c|
00006950  61 6e 20 62 65 20 61 6c  74 65 72 65 64 20 77 69  |an be altered wi|
00006960  74 68 20 3c 56 44 55 20  32 33 2c 31 37 2c 37 3d  |th <VDU 23,17,7=|
00006970  3e 32 33 2c 31 37 2c 37  3e 2e 0a 0a 3c 4f 53 5f  |>23,17,7>...<OS_|
00006980  42 79 74 65 20 31 31 37  3d 3e 4f 53 3a 4f 53 5f  |Byte 117=>OS:OS_|
00006990  42 79 74 65 31 31 37 3e  20 63 61 6e 20 62 65 20  |Byte117> can be |
000069a0  75 73 65 64 20 74 6f 20  66 69 6e 64 20 6f 75 74  |used to find out|
000069b0  20 77 68 65 74 68 65 72  20 74 68 65 20 63 75 72  | whether the cur|
000069c0  73 6f 72 73 20 61 72 65  20 73 70 6c 69 74 20 6f  |sors are split o|
000069d0  72 20 6a 6f 69 6e 65 64  2e 0a 0a 56 44 55 20 35  |r joined...VDU 5|
000069e0  20 6d 6f 64 65 20 69 73  20 73 6c 6f 77 65 72 20  | mode is slower |
000069f0  74 68 61 6e 20 56 44 55  20 34 20 6d 6f 64 65 2c  |than VDU 4 mode,|
00006a00  20 61 6e 64 20 64 6f 65  73 20 6e 6f 74 20 61 6c  | and does not al|
00006a10  6c 6f 77 20 63 75 72 73  6f 72 20 65 64 69 74 69  |low cursor editi|
00006a20  6e 67 2e 0a 44 41 54 41  b3 00 00 00 56 44 55 20  |ng..DATA....VDU |
00006a30  36 0a 23 50 61 72 65 6e  74 20 21 52 6f 6f 74 0a  |6.#Parent !Root.|
00006a40  56 44 55 20 36 20 65 6e  61 62 6c 65 73 20 73 63  |VDU 6 enables sc|
00006a50  72 65 65 6e 20 6f 75 74  70 75 74 2c 20 72 65 76  |reen output, rev|
00006a60  65 72 73 69 6e 67 20 74  68 65 20 65 66 66 65 63  |ersing the effec|
00006a70  74 20 6f 66 20 3c 56 44  55 20 32 31 3d 3e 32 31  |t of <VDU 21=>21|
00006a80  3e 2e 20 3c 4f 53 5f 42  79 74 65 20 31 31 37 3d  |>. <OS_Byte 117=|
00006a90  3e 4f 53 3a 4f 53 5f 42  79 74 65 31 31 37 3e 20  |>OS:OS_Byte117> |
00006aa0  63 61 6e 20 62 65 20 75  73 65 64 20 74 6f 20 72  |can be used to r|
00006ab0  65 61 64 20 77 68 65 74  68 65 72 20 73 63 72 65  |ead whether scre|
00006ac0  65 6e 20 6f 75 74 70 75  74 20 69 73 20 64 69 73  |en output is dis|
00006ad0  61 62 6c 65 64 2e 0a 00  44 41 54 41 b9 00 00 00  |abled...DATA....|
00006ae0  56 44 55 20 37 0a 23 50  61 72 65 6e 74 20 21 52  |VDU 7.#Parent !R|
00006af0  6f 6f 74 0a 56 44 55 20  37 20 73 6f 75 6e 64 73  |oot.VDU 7 sounds|
00006b00  20 74 68 65 20 62 65 6c  6c 0a 0a 42 65 6c 6c 20  | the bell..Bell |
00006b10  73 6f 75 6e 64 20 70 61  72 61 6d 65 74 65 72 73  |sound parameters|
00006b20  20 61 72 65 20 73 65 74  20 77 69 74 68 20 4f 53  | are set with OS|
00006b30  5f 42 79 74 65 20 3c 32  31 31 3d 3e 4f 53 3a 4f  |_Byte <211=>OS:O|
00006b40  53 5f 42 79 74 65 32 31  31 3e 2c 20 3c 32 31 32  |S_Byte211>, <212|
00006b50  3d 3e 4f 53 3a 4f 53 5f  42 79 74 65 32 31 32 3e  |=>OS:OS_Byte212>|
00006b60  2c 20 3c 32 31 33 3d 3e  4f 53 3a 4f 53 5f 42 79  |, <213=>OS:OS_By|
00006b70  74 65 32 31 33 3e 20 61  6e 64 20 3c 32 31 34 3d  |te213> and <214=|
00006b80  3e 4f 53 3a 4f 53 5f 42  79 74 65 32 31 34 3e 2e  |>OS:OS_Byte214>.|
00006b90  0a 00 00 00 44 41 54 41  a8 01 00 00 56 44 55 20  |....DATA....VDU |
00006ba0  38 0a 23 50 61 72 65 6e  74 20 21 52 6f 6f 74 0a  |8.#Parent !Root.|
00006bb0  56 44 55 20 38 20 62 61  63 6b 73 70 61 63 65 73  |VDU 8 backspaces|
00006bc0  20 74 68 65 20 63 75 72  73 6f 72 0a 0a 49 6e 20  | the cursor..In |
00006bd0  3c 56 44 55 20 34 3d 3e  34 3e 20 6d 6f 64 65 20  |<VDU 4=>4> mode |
00006be0  74 68 69 73 20 69 73 20  74 68 65 20 74 65 78 74  |this is the text|
00006bf0  20 63 75 72 73 6f 72 2c  20 69 6e 20 3c 56 44 55  | cursor, in <VDU|
00006c00  20 35 3d 3e 35 3e 20 6d  6f 64 65 20 74 68 65 20  | 5=>5> mode the |
00006c10  67 72 61 70 68 69 63 73  20 63 75 72 73 6f 72 2e  |graphics cursor.|
00006c20  20 42 61 63 6b 73 70 61  63 65 20 6d 6f 76 65 73  | Backspace moves|
00006c30  20 74 6f 20 6e 65 67 61  74 69 76 65 20 58 20 28  | to negative X (|
00006c40  64 65 66 61 75 6c 74 20  69 73 20 6c 65 66 74 2c  |default is left,|
00006c50  20 73 65 74 20 62 79 20  3c 56 44 55 20 32 33 2c  | set by <VDU 23,|
00006c60  31 36 3d 3e 32 33 2c 31  36 3e 29 2e 20 49 66 20  |16=>23,16>). If |
00006c70  61 74 20 74 68 65 20 73  74 61 72 74 20 6f 66 20  |at the start of |
00006c80  61 20 72 6f 77 20 28 63  6f 6c 75 6d 6e 20 77 69  |a row (column wi|
00006c90  74 68 20 3c 76 65 72 74  69 63 61 6c 20 70 72 69  |th <vertical pri|
00006ca0  6e 74 69 6e 67 3d 3e 32  33 2c 31 36 3e 29 20 69  |nting=>23,16>) i|
00006cb0  74 20 6d 6f 76 65 73 20  74 6f 20 74 68 65 20 65  |t moves to the e|
00006cc0  6e 64 20 6f 66 20 74 68  65 20 70 72 65 76 69 6f  |nd of the previo|
00006cd0  75 73 20 72 6f 77 20 28  6f 72 20 63 6f 6c 75 6d  |us row (or colum|
00006ce0  6e 29 20 73 63 72 6f 6c  6c 69 6e 67 20 74 68 65  |n) scrolling the|
00006cf0  20 73 63 72 65 65 6e 20  77 68 65 72 65 20 6e 65  | screen where ne|
00006d00  63 65 73 73 61 72 79 2e  0a 0a 42 61 63 6b 73 70  |cessary...Backsp|
00006d10  61 63 65 20 64 6f 65 73  20 6e 6f 74 20 64 65 6c  |ace does not del|
00006d20  65 74 65 20 74 68 65 20  70 72 65 76 69 6f 75 73  |ete the previous|
00006d30  20 63 68 61 72 61 63 74  65 72 2e 0a 44 41 54 41  | character..DATA|
00006d40  c4 01 00 00 56 44 55 20  39 0a 23 50 61 72 65 6e  |....VDU 9.#Paren|
00006d50  74 20 21 52 6f 6f 74 0a  56 44 55 20 39 20 61 64  |t !Root.VDU 9 ad|
00006d60  76 61 6e 63 65 73 20 74  68 65 20 63 75 72 73 6f  |vances the curso|
00006d70  72 0a 0a 49 6e 20 3c 56  44 55 20 34 3d 3e 34 3e  |r..In <VDU 4=>4>|
00006d80  20 6d 6f 64 65 20 74 68  69 73 20 69 73 20 74 68  | mode this is th|
00006d90  65 20 74 65 78 74 20 63  75 72 73 6f 72 2c 20 69  |e text cursor, i|
00006da0  6e 20 3c 56 44 55 20 35  3d 3e 35 3e 20 6d 6f 64  |n <VDU 5=>5> mod|
00006db0  65 20 74 68 65 20 67 72  61 70 68 69 63 73 20 63  |e the graphics c|
00006dc0  75 72 73 6f 72 2e 20 4d  6f 74 69 6f 6e 20 69 73  |ursor. Motion is|
00006dd0  20 74 6f 20 70 6f 73 69  74 69 76 65 20 58 20 28  | to positive X (|
00006de0  64 65 66 61 75 6c 74 20  69 73 20 72 69 67 68 74  |default is right|
00006df0  2c 20 73 65 74 20 62 79  20 3c 56 44 55 20 32 33  |, set by <VDU 23|
00006e00  2c 31 36 3d 3e 32 33 2c  31 36 3e 29 2e 20 49 66  |,16=>23,16>). If|
00006e10  20 61 74 20 74 68 65 20  65 6e 64 20 6f 66 20 61  | at the end of a|
00006e20  20 72 6f 77 20 28 63 6f  6c 75 6d 6e 20 77 69 74  | row (column wit|
00006e30  68 20 3c 76 65 72 74 69  63 61 6c 20 70 72 69 6e  |h <vertical prin|
00006e40  74 69 6e 67 3d 3e 32 33  2c 31 36 3e 29 20 69 74  |ting=>23,16>) it|
00006e50  20 6d 6f 76 65 73 20 74  6f 20 74 68 65 20 65 6e  | moves to the en|
00006e60  64 20 6f 66 20 74 68 65  20 6e 65 78 74 20 72 6f  |d of the next ro|
00006e70  77 20 28 6f 72 20 63 6f  6c 75 6d 6e 29 20 73 63  |w (or column) sc|
00006e80  72 6f 6c 6c 69 6e 67 20  74 68 65 20 73 63 72 65  |rolling the scre|
00006e90  65 6e 20 3c 77 68 65 72  65 20 6e 65 63 65 73 73  |en <where necess|
00006ea0  61 72 79 3d 3e 53 63 72  6f 6c 6c 5f 50 72 6f 74  |ary=>Scroll_Prot|
00006eb0  65 63 74 69 6f 6e 3e 2e  0a 0a 54 68 65 20 63 75  |ection>...The cu|
00006ec0  72 73 6f 72 20 69 73 20  61 64 76 61 6e 63 65 64  |rsor is advanced|
00006ed0  20 31 20 63 68 61 72 61  63 74 65 72 20 77 69 64  | 1 character wid|
00006ee0  74 68 2c 20 6e 6f 74 20  74 6f 20 74 68 65 20 6e  |th, not to the n|
00006ef0  65 78 74 20 74 61 62 20  63 6f 6c 75 6d 6e 2e 0a  |ext tab column..|
00006f00  44 41 54 41 27 05 00 00  56 44 55 20 63 6f 6d 6d  |DATA'...VDU comm|
00006f10  61 6e 64 73 20 6d 61 6e  75 61 6c 0a 23 41 6c 69  |ands manual.#Ali|
00006f20  67 6e 20 43 65 6e 74 72  65 0a 7b 66 68 33 7d 56  |gn Centre.{fh3}V|
00006f30  44 55 20 63 6f 6d 6d 61  6e 64 73 20 6d 61 6e 75  |DU commands manu|
00006f40  61 6c 7b 66 7d 0a 23 4c  69 6e 65 0a 23 41 6c 69  |al{f}.#Line.#Ali|
00006f50  67 6e 20 4c 65 66 74 0a  54 68 69 73 20 6d 61 6e  |gn Left.This man|
00006f60  75 61 6c 20 69 73 20 70  61 72 74 20 6f 66 20 61  |ual is part of a|
00006f70  20 63 6f 6c 6c 65 63 74  69 6f 6e 20 63 6f 6d 70  | collection comp|
00006f80  72 69 73 69 6e 67 20 74  68 65 20 6d 61 69 6e 20  |rising the main |
00006f90  70 75 62 6c 69 63 20 64  6f 6d 61 69 6e 20 70 72  |public domain pr|
00006fa0  6f 67 72 61 6d 6d 69 6e  67 20 72 65 66 65 72 65  |ogramming refere|
00006fb0  6e 63 65 2e 20 54 68 65  20 6f 74 68 65 72 20 6d  |nce. The other m|
00006fc0  61 6e 75 61 6c 73 20 69  6e 20 74 68 65 20 73 65  |anuals in the se|
00006fd0  72 69 65 73 20 61 72 65  20 3a 0a 23 49 6e 64 65  |ries are :.#Inde|
00006fe0  6e 74 20 32 0a 23 50 6f  73 74 66 69 78 20 3a 21  |nt 2.#Postfix :!|
00006ff0  52 6f 6f 74 0a 3c 4f 53  3e 09 09 54 68 65 20 62  |Root.<OS>..The b|
00007000  61 73 65 20 6f 70 65 72  61 74 69 6e 67 20 73 79  |ase operating sy|
00007010  73 74 65 6d 20 73 74 75  66 66 0a 3c 57 69 6d 70  |stem stuff.<Wimp|
00007020  3e 09 09 54 68 65 20 64  65 73 6b 74 6f 70 20 70  |>..The desktop p|
00007030  61 72 74 20 6f 66 20 74  68 65 20 6f 70 65 72 61  |art of the opera|
00007040  74 69 6e 67 20 73 79 73  74 65 6d 0a 3c 49 6e 65  |ting system.<Ine|
00007050  74 53 57 49 73 3e 09 49  6e 74 65 72 6e 65 74 20  |tSWIs>.Internet |
00007060  62 61 73 65 64 20 53 57  49 73 0a 3c 49 6e 65 74  |based SWIs.<Inet|
00007070  53 6f 63 6b 65 74 3e 09  49 6e 74 65 72 6e 65 74  |Socket>.Internet|
00007080  20 73 6f 63 6b 65 74 20  63 61 6c 6c 73 0a 3c 4d  | socket calls.<M|
00007090  69 73 63 53 57 49 73 3e  09 4d 69 73 63 65 6c 6c  |iscSWIs>.Miscell|
000070a0  61 6e 65 6f 75 73 20 53  57 49 73 0a 3c 56 44 55  |aneous SWIs.<VDU|
000070b0  3e 09 09 56 44 55 20 63  6f 6d 6d 61 6e 64 73 0a  |>..VDU commands.|
000070c0  3c 54 6f 6f 6c 62 6f 78  3e 09 54 6f 6f 6c 62 6f  |<Toolbox>.Toolbo|
000070d0  78 20 28 62 79 20 4e 69  65 6c 20 42 69 6e 67 68  |x (by Niel Bingh|
000070e0  61 6d 29 0a 23 49 6e 64  65 6e 74 0a 0a 46 6f 72  |am).#Indent..For|
000070f0  20 63 6f 6d 6d 65 6e 74  73 2c 20 73 75 67 67 65  | comments, sugge|
00007100  73 74 69 6f 6e 73 20 61  6e 64 20 73 75 62 6d 69  |stions and submi|
00007110  73 73 69 6f 6e 73 20 66  6f 72 20 74 68 65 73 65  |ssions for these|
00007120  2c 20 70 6c 65 61 73 65  20 6d 61 69 6c 20 4a 75  |, please mail Ju|
00007130  73 74 69 6e 20 46 6c 65  74 63 68 65 72 20 3c 5c  |stin Fletcher <\|
00007140  3c 67 65 72 70 68 40 69  6e 6e 6f 63 65 6e 74 2e  |<gerph@innocent.|
00007150  63 6f 6d 5c 3e 3d 3e 23  55 52 4c 20 6d 61 69 6c  |com\>=>#URL mail|
00007160  74 6f 3a 67 65 72 70 68  40 69 6e 6e 6f 63 65 6e  |to:gerph@innocen|
00007170  74 2e 63 6f 6d 3e 20 77  68 6f 20 69 73 20 63 75  |t.com> who is cu|
00007180  72 72 65 6e 74 6c 79 20  6d 6f 64 65 72 61 74 69  |rrently moderati|
00007190  6e 67 20 74 68 65 20 63  6f 6c 6c 65 63 74 69 6f  |ng the collectio|
000071a0  6e 2e 20 54 68 65 20 70  72 69 6d 61 72 79 20 6c  |n. The primary l|
000071b0  6f 63 61 74 69 6f 6e 20  66 6f 72 20 74 68 65 73  |ocation for thes|
000071c0  65 20 6d 61 6e 75 61 6c  73 20 77 69 6c 6c 20 62  |e manuals will b|
000071d0  65 20 3c 68 74 74 70 3a  2f 2f 66 72 65 65 6e 65  |e <http://freene|
000071e0  74 2e 62 61 72 6e 65 74  2e 61 63 2e 75 6b 2f 6d  |t.barnet.ac.uk/m|
000071f0  61 6e 75 61 6c 73 2f 3d  3e 23 55 52 4c 20 68 74  |anuals/=>#URL ht|
00007200  74 70 3a 2f 2f 66 72 65  65 6e 65 74 2e 62 61 72  |tp://freenet.bar|
00007210  6e 65 74 2e 61 63 2e 75  6b 2f 6d 61 6e 75 61 6c  |net.ac.uk/manual|
00007220  73 2f 3e 2e 0a 0a 43 6c  69 63 6b 20 3c 68 65 72  |s/>...Click <her|
00007230  65 3d 3e 2e 68 69 73 74  32 30 30 3e 20 66 6f 72  |e=>.hist200> for|
00007240  20 73 6f 6d 65 20 68 69  73 74 6f 72 79 2e 0a 23  | some history..#|
00007250  53 75 62 70 61 67 65 20  68 69 73 74 31 30 30 0a  |Subpage hist100.|
00007260  56 44 55 20 48 69 73 74  6f 72 79 20 76 31 2e 30  |VDU History v1.0|
00007270  30 0a 8f 09 4f 72 69 67  69 6e 61 6c 20 76 65 72  |0...Original ver|
00007280  73 69 6f 6e 20 62 79 20  47 75 74 74 6f 72 6d 20  |sion by Guttorm |
00007290  56 69 6b 20 28 6d 61 6e  79 20 74 68 61 6e 6b 73  |Vik (many thanks|
000072a0  21 29 0a 0a 3c 4e 65 78  74 3d 3e 2e 68 69 73 74  |!)..<Next=>.hist|
000072b0  32 30 30 3e 0a 23 53 75  62 70 61 67 65 20 68 69  |200>.#Subpage hi|
000072c0  73 74 32 30 30 0a 56 44  55 20 48 69 73 74 6f 72  |st200.VDU Histor|
000072d0  79 20 76 32 2e 30 30 0a  23 61 6c 69 67 6e 20 72  |y v2.00.#align r|
000072e0  69 67 68 74 0a 7b 2f 7d  32 32 20 4d 61 72 20 31  |ight.{/}22 Mar 1|
000072f0  39 39 38 7b 2f 7d 0a 8f  09 53 75 62 6d 69 73 73  |998{/}...Submiss|
00007300  69 6f 6e 73 20 66 72 6f  6d 20 76 61 72 69 6f 75  |ions from variou|
00007310  73 20 70 65 6f 70 6c 65  20 61 64 64 65 64 2e 0a  |s people added..|
00007320  8f 09 43 68 61 6e 67 65  73 20 74 6f 20 74 68 65  |..Changes to the|
00007330  20 66 6f 72 6d 61 74 74  69 6e 67 20 61 6e 64 20  | formatting and |
00007340  6c 69 6e 6b 73 20 2d 20  6e 6f 77 20 6c 69 6e 6b  |links - now link|
00007350  73 20 76 69 61 20 64 65  73 63 72 69 70 74 69 6f  |s via descriptio|
00007360  6e 20 72 61 74 68 65 72  20 74 68 61 6e 20 6e 75  |n rather than nu|
00007370  6d 62 65 72 2c 20 67 69  76 69 6e 67 20 61 20 62  |mber, giving a b|
00007380  69 67 67 65 72 20 61 72  65 61 20 74 6f 20 27 68  |igger area to 'h|
00007390  69 74 27 0a 8f 09 4e 69  63 6b 20 43 6c 61 72 6b  |it'...Nick Clark|
000073a0  27 73 20 64 6f 6e 65 20  65 76 65 72 79 74 68 69  |'s done everythi|
000073b0  6e 67 2e 0a 8f 09 54 68  61 74 27 73 20 61 6c 6c  |ng....That's all|
000073c0  20 66 6f 6c 6b 73 2c 20  49 20 63 61 6e 27 74 20  | folks, I can't |
000073d0  69 6d 61 67 69 6e 65 20  6d 75 63 68 20 6d 6f 72  |imagine much mor|
000073e0  65 20 77 69 6c 6c 20 68  61 70 70 65 6e 20 77 69  |e will happen wi|
000073f0  74 68 20 74 68 65 20 56  44 55 20 6d 61 6e 75 61  |th the VDU manua|
00007400  6c 20 21 0a 0a 23 54 61  62 0a 3c 50 72 65 76 69  |l !..#Tab.<Previ|
00007410  6f 75 73 20 68 69 73 74  6f 72 79 3d 3e 2e 68 69  |ous history=>.hi|
00007420  73 74 31 30 30 3e 0a 00                           |st100>..|
00007428