Width; Window - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

WIDTH
W I D T H
<integer expression>
WIDTH 40
COMMAND: Tells BASIC how many characters per line are to be printed when a
printer is connected. BASIC will then send the extra carriage return/line feed at the
appropriate time.
The computer assumes a default value of 1 32 unless a W I D T H command is specified.
The command W I D T H 2 5 5 suppresses the extra carriage return/line feed
altogether, allowing printing to be 'line wrapped' by the printer. Note that carriage
returnlline feed will still be generated by a PR I N T command that isn't terminated
by a semicolon or comma.
Associated keywords: PO S
WINDOW
WIN DO W[# <stream expression> , ]<left> , <right> , <top> , <bottom>
10 MODE 0:BORDER 0:REM testcard
20 INK 0,0:INK 1,25:INK 2,23:INK 3,21
30 INK 4,17:INK 5,6:INK 6,2:INK 7,26
40 PAPER 0:CLS
50 PAPER 1:WINDOW 2,4,1,18:CLS
60 PAPER 2:WINDOW 5,7,1,18:CLS
70 PAPER 3:WINDOW 8,10,1,18:CLS
80 PAPER 4:WINDOW 11,13,1,18:CLS
90 PAPER 5:WINDOW 14,16,1,18:CLS
100 PAPER 6:WINDOW 17,19,1,18:CLS
110 PAPER 7:WINDOW 2,19,19,25:CLS
120 GOTO 120
run
COMMAND: Specifies the dimensions ofa text stream (W I N DOW) on the screen. The
values of the parameters <left>, <right>,<top>, and <bottom> should correspond with the
inclusive screen character locations consistent with the screen MOD E in use:
If the <stream expression> is not specified, BASIC defaults to stream
#
0.
Further information concerning windows will be found in part 2 of the chapter
entitled 'At your leisure .... '.
Associated keywords: WIN DO W SW A P
Complete List of Keywords
Chapter 3 Page 89

Advertisement

Table of Contents
loading

Table of Contents