roth@ut-sally.UUCP (Mark Roth) (08/15/85)
I have a TRS-80 model III and a Centronics 779 printer with a parallel interface. I have two problems when I try to print to it using BASIC. 1. No line feed after a line of output (using LPRINT or LLIST), unless I specifically put a CHR$(13) or CHR$(10) at the end of the command. Do you know what the TRS-80 III puts at the end of each line? 2. When using LPRINT "HELP"; : LPRINT " PLEASE" The " PLEASE" overwrites the "HELP" on the same line, rather than continuing from where it left off. I also can't get lower case letters to print..they all get shifted to upper case, and the letters are very small (can I change sizes?). I have no documentation for the printer, so any help you can give me would be deeply appreciated. If nothing else I could use the address for the company that made this printer and maybe I can write and get some documentation. Thanks, Mark Roth (roth@sally.utexas, roth@ut-sally)
sob@neuro1.UUCP (Stan Barber) (08/16/85)
The two problems are really the same thing. The TRS80 puts ONLY a Carriage RETURN at the end of each line. Carriage return is CHR$(13) in BASIC. You need to have it add a LINE FEED which is CHR$(10).... Example: 10 PRINT"HELP":PRINTCHR$(10); 20 PRINT"PLEASE":PRINTCHR$(10); This should do what you wanted. A better soluition is to write a little driver that adds a LF anytime the printer sees a CR. If you have LDOS on your MODEL III, look at the dox for PR/FLT and use that. I believe the 779 does not do lowercase, but I am not sure of that. -- Stan uucp:{ihnp4!shell,rice}!neuro1!sob Opinions expressed Olan ARPA:sob@rice.arpa here are ONLY mine & Barber CIS:71565,623 BBS:(713)660-9262 noone else's.
abc@brl-sem.ARPA (Brint Cooper ) (08/20/85)
I don't think you can get line feeds with CHR$ (n) on the TRS-80. My Model I ROM traps all such characters. To get past this, Poke the appropriate code to the printer port. You should be able to find these numbers in your TRS manual. Brint