76
<LV
y
,
l
>
Line Vertical
Line Graphics
Description
Draw a vertical line
y
pixels high with a line thickness of
l
Parameters
y
= 1 to 64
- height
l
= 1 to 120
- line thickness
Modes
Pixel mode only
Notes
The line is drawn from the current cursor position upwards and to the right.
The cursor position is unchanged after the command
The parameters may be any value that will keep the line being drawn on-screen. If any part of the
defined line is off-screen, then the line is not drawn and an error response it returned to the host.
Uses
The <LV> command allows:
•
information to be segmented
•
borders to be drawn
•
line images to be constructed
Example
<SD>
Set the display to a known state
<PM>
Set display to Pixel Mode
<CM63,58>
Move the cursor to pixel row 63, in the middle of the screen
<LV64,4>
Draw a vertical line 64 pixels long and 4 pixels wide
<RM>
Back to Row Mode
<DW0,7,0,57>
Define a window on the left half of the screen
<SW>
Turn Smart Wrap attribute on. Text wraps without splitting words
<HC>
Home the cursor to top left of window
<WTThis is the left
half of the screen>
Write out some text
<DW0,7,63,119>
Define a window on the right half of the screen
<HC>
Home the cursor to the top left of the window
<WT … and this is
the right half of
the screen>
Write out some more text
Gotchas!
The entire line must fit on the screen, otherwise nothing will be drawn and an error response
generated
See Also
BD
Box Draw
LH
Line Horizontal