Chapter 4 USING THE PRINTER
WITH DOS AND BASIC
Although you will probably do most of your printing with the aid of commercial software, at times you will want to employ direct commands or programs of your own. This chapter will give you some ideas. Three subjects are covered:
•
•Programming the printer with DOS commands
•Programming the printer with BASIC
HARD-COPYING THE SCREEN (MS-DOS AND PC-DOS)
If your computer has a PRTSC (or PrtSc) key, there is an easy way to get hard copy of the screen. Press the SHIFT and PRTSC keys. The printer will print the current screen contents. The PRTSC key works both at the system command level and while you are running application software.
Normally the PRTSC key prints only text data, but if your DOS system includes a file named GRAPHICS.COM, you can
A>GRAPHICS
You will find that graphics printing takes considerably more time than text printing. See your DOS manual for further information on the GRAPHICS command.
At the DOS command level, there is also a simple way to have the printer print hard copy continuously, instead of one screen at a time. Press the CTRL key, hold it down, then also press the PRTSC key. If your computer does not have a PRTSC key, press the CTRL and P keys. Nothing visible will happen, but you have just switched on the
A>DIR
You will obtain a printed directory.
35