EasyManua.ls Logo

Commodore MPS 1200 - Right Margin

Commodore MPS 1200
250 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Exnmple:
10
open
1,4,7
20
P
t~
i n t # 1 , "
123456
"189(1123456789(1123456789(1"
~:'(1
pt~int#l,
"The
powet~-on
left
mat~8in"
40
pt"'int#l,
"stat~ts
at
the
left-most"
5')
pt~int#l,
"pt~int
position."
6':1
pt~int#1.,
cht·'$
(27)"
1
"chr$
(1':1);
7(1
pt~int#l,
"The
left
mat~gin
now
stat~ts"
8(1
pt~int#l,"at
column
(n
+
1)
which"
90
pt~int#l,"
is
column
11."
HH)
pt~int#l,
cht~$
(27)
"1
"cht~$
(0)
;
lH1
pt~int#l,
"Default
left
mat~gin
again."
12')
close
1
123456789012345678901234567890
The
power-on
left
margin
starts
at
the
left-most
pt~int
position.
The
left
margin
now
starts
at
column
(n
+
1)
which
is
column
11.
Default
left
margin
again.
Right
Margin
BASIC
Hex
chr$(27)
"Q"
chr$(n)
1 B
01
nh
(n
= 1
to
255)
(nh
=
01
h
to
FFh)
The
sequence
ESC
Q sets the right margin at
column
n.
To
use it,
send
ESC
Q followed
by
the ASCII code for the
column
number
you want. For example, chr$(27)
"Q"
chr$(70) sets the right
mar-
gin at
column
70.
This
will allow printing
up
to (and including)
column
70.
The
actual
width
of
the margin
is
determined by the
character
width
in effect
when
the margin
is
set. Later changes in
the character
width
do
not
affect the
width
of
the margin.
The
minimum
value
of
n
is
1
as
expanded character width.
4-18

Related product manuals