EasyManua.ls Logo

HP LaserJet - Page 35

HP LaserJet
196 pages
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...
BASIC Example:
100
REM
---
Horizontal Cursor position Movement ----
110
REM
-notice'#'
replaced
by
column position--
120
LPRINT
CHR$(27);"&aI0C";"Column 10"
130
LPRINT
CHR$(27);"&a40C"j"Column 40"
140
LPRINT
CHR$(27)j"&a60C"j"Column 60"
150
LPRINT
CHR$(27);"&a50C"j"Column 50";
160
FOR
A=l
TO
5:LPRINT:NEXT A
170
REM --this loop prints diagonal pattern
------
180
FOR N=0
TO
80
STEP
5:LPRINT CHR$(27)j"&a";N;"C";N
190
NEXT N
200
LPRINT
CHR$(12);
:REM
-Form
Feed--
VERTICAL CURSOR
POSITIONING
(USING LINES)
The following escape sequence moves the
current
active printing
position
to
the same column position on a new line:
Ec&a#R
# = Vertical position (in lines)
The
value field (#) specifies
the
new vertical position (in number
of
lines); a plus (+)
or
minus
(-)
sign
in
front
of
the
value indicates
the
new position
is
relative
to
(down
or
up
from) the
current
active position--no plus
or
minus sign indicates
that
the
new
position
is
an absolute line number.
For
example,
to
move the
cursor
from
line number 5
to
line number
1,
you could send
either the Ec&alR sequence
or
the Ec&a-4R sequence. NOTE:
The distance
the
cursor moves per line
is
determined
by
the
current
vertical line spacing.
Absolute
or
relative requests which exceed
the
physical limits
of
the
printer will move
the
cursor
to
the
appropriate limit.
The
first line within a
form
(specified by the
top
margin)
is
line zero.
Absolute positioning
is
in respect
to
the
top
margin. Positive
relative positioning allows you
to
move
the
cursor the specified
number
of
lines
off
the
current
page, causing a page eject.
Vertical cursor positioning ignores the
perforation
skip mode,
allowing
the
cursor
to
move into the
bottom
margin.
2-16

Other manuals for HP LaserJet

Related product manuals