PRINT CHARACTERS IN PC8 SYMBOL SET DEFINITION Symbol sets are unique groupings of characters (alphabetic, numeric, punctuation and special symbols) designed to meet the requirements of specific languages and occupations. This program prints the entire PC-8 symbol set including the normally transparent symbols. For more information concerning symbol sets refer to your printer user's manual or the PCL5 Printer Language Technical Reference Manual. Note: This example is written using GWBASIC as it utilizes specific commands only available through a programming language. Each program language has a different set of commands to perform a similar function. This cannot be done in EDIT due to the for/next loop command. PRINT ALL CHARACTERS IN PC-8 SYMBOL SET 10 WIDTH "LPT1:",255 Statement prevents Basic from inserting carriage return after 80 character are printed. 20 LPRINT CHR$(27);"E" Printer Reset 30 LPRINT CHR$(27);"&s0C" Enables end of line wrap 40 LPRINT CHR$(27);"(10U" Selects the PC-8 Symbol Set 50 LPRINT Selects a 10 pitch, 12 CHR$(27);"(s0p10h12v0s0b3T" point, upright medium, Courier Font. 60 FOR I =1 TO 255 BASIC Command beginning the For/ Next loop which defines the range of values to be printed. 70 LPRINT CHR$(27);"&p1X" Allows normally unprintable characters to be printed 80 LPRINT CHR$(I); Basic command which prints the current character 90 NEXT I Basic command which end loop. 100 LPRINT CHR$(27);"E" Resets and Ejects page 110 END Ends Program In Basic Copyright Hewlett-Packard Co. 1993 The information contained herein is subject to change without notice. Hewlett-Packard shall not be liable for incidental or consequential damages in connection with the use of this material.
Questions:
file: /Techref/language/pcl/lj1616.htm, 3KB, , updated: 2006/11/6 13:18, local time: 2024/11/22 14:28,
3.138.126.51:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/Techref/language/pcl/lj1616.htm"> language pcl lj1616</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.