Commodore Computer 4023 Bedienungsanleitung Seite 3

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 16
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 2
Q&A Dodger hy W arren Swan
PRINTER:
Assumed: That you are using a Commodore 4023 or like
Commodore dot-matrix printer. Also, that the printers device
number is 4. If not, replace 4 with the appropriate device
number in the following. Also, I use the variables P and PF
to refer to two numbers, both from 1 to 255 and both different.
3.1 PUTTING THE PRINTER IN LOWER CASE /
UPPER CASE MODE
Assumed: that you first open a file to the printer with a
command such as
open P,4
To put the printer in lower / upper case mode only
temporarily, print a cursor down character prior to the section.
Printing a cursor up or beginning a new line will cause the
printer to leave lower / upper case mode. For example:
printtiP, "(cursor down)upper & lower (cursor up) upper
<fi graphics "
To place the printer in lower / upper case mode until
changed back or turned off, use these commands:
open PF,4,7; print#PF: close PF
Application packages such as Superscript assume the
printer to be in upper case / graphics mode. These packages
preface each line with a cursor down.
3.2 PUTTING THE PRINTER INTO UPPER CASE /
GRAPHICS MODE
To put the printer in uppercase / graphics mode temporarily,
print a cursor down prior to the section. A cursor down always
prints the following characters in the OPPOSITE MODE that
the printer was in. A cursor up or new line cancels this
temporary switch. See above for an example. When the printer
is first turned on it wakes up" in this mode. To switch the
printer back to upper case / graphics mode, use these com
mands:
open PF,4,8: print ft PF: close PF
3.3 PAGINATION
Pagination causes the printer to skip 6 lines, 3 at the top and
3 at the bottom, of each page. To turn on pagination, print a
SHIFT CLR character to the printer. NOTE: This character
is not buffered by the printer. It is performed immediately.
Now move the top of the page to just past the little black rollers
on the page holder.To turn off pagination, just print a HOME
character to the printer. This character is also performed
immediately instead of being buffered. The current page will
eject and then the printer is no longer paginating.
3.4 EJECTING A PAGE
The way to eject to the top of the form is (believe it or not)
to print a HOME immediately followed by a SHIFT CLR to
the printer, as follows:
printtt4, "(home)(shift clr)"
________________________
Question & Answers byW arren D. Swan
Question: "How do you get the Superscript II '♦format 1 =
command, described in section 10.2.2 of the manual (page 131),
to work?"
Answer: The confusion here is caused by the word "format",
which Precision Software wanted to mean "put any optional
format commands here, separated by colons." To avoid confu
sion they should have simply left out the word "format". Their
example would then have looked like:
*1=204
The word "format" simply means that we could also have
used:
*lm 20:jul:2=95:l=204
for all that Superscript cares. Notice that you do not press
the ESCape key before typing the digit when using the *digit=
command (I mean *1 = ... or *2= ... for example). But, when
you go to insert these special characters into your text, you must
press ESCape and the corresponding digit to get the ASCII code
that you assigned to that digit in the *digit= command. When
you do this, the digit will be displayed reversed in your text.
As an example, we want to print the underscore character on
a Commodore 6400 printer. The underscore is ASCII code 95.
To print the underscore we would use the following text (reversed
characters are underlined here):
*1=95
This text will contain an underscore (1) between the paren
thesis when printed, and a reversed 1 when viewed in Super
script.
PAGING THE .4Q23 by Roy Sherman
Just a little follow-up on paging when using other than 6 lpi
(lines per inch), (the default mode)To set the spacing between
lines (bottom of one line to the bottom of the next) type:
open6,4,6: print#6,chr$(x): close 6
To determine the number for x in the chr$( ) divide 216 by
the lpi desired, ie, 216/9 = 24. Simply substutite 24 for the x
above [chr$(24)]. Nine lpi, by the way, will allow the printer
graphics to connect. Next we set the number of lines per page
with:
open 4,4:print#4,chr$(147) - turns on paging
open3,4,3:print#3,chr$(p):dose3 sets # of printed lines
print#4,chr$(147): close 4 enable paging again.
To determine the value of p, multiply the lpi by 11 (for 11 inch
paper) and subtract 6 for the three blank lines at the top and
bottom of the page that the printer is going to put in automat
ically. ie, 9 lpi X 11 inches = 99 lines per page - 6 = 93
PRINTED lines per page. Therefore p = 93.To eject a page
type:
open 4,4: print#4, chr$(19) chr$(147): close 4
_This will perform a "top of form" from within a program
the same as the paper advance button on the printer.
June 1993
3
Seitenansicht 2
1 2 3 4 5 6 7 8 ... 15 16

Kommentare zu diesen Handbüchern

Keine Kommentare