Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!cbmvax!carolyn From: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: Re: Printer troubles Message-ID: <2378@cbmvax.UUCP> Date: Tue, 22-Sep-87 10:59:03 EDT Article-I.D.: cbmvax.2378 Posted: Tue Sep 22 10:59:03 1987 Date-Received: Thu, 24-Sep-87 05:45:34 EDT References: <7200009@uiucdcsm> <4580@videovax.Tek.COM> <353@su-russell.ARPA> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 82 In article <353@su-russell.ARPA> kasper@su-russell.UUCP (Kasper Osterbye) writes: >In article <4580@videovax.Tek.COM> stever@videovax.Tek.COM (Steven E. Rice, P.E.) writes: >>In article <7200009@uiucdcsm>, Mike Schwager( schwager@uiucdcsm.cs.uiuc.edu) >>writes: >> >>> Here's an odd little problem I'm having: >>> I can't seem to get the ASCII "escape" character to my printer. >>>[] > >I had the same problem as Mike. And a huried to my amiga when >I came home after reading Steve's note. And it sure worked, I >was able to get italics and proportional spacing and god knows >what. BUT I was not able to get by danish or any other ALT-selected >charaters through anymore. >[] 1. All printer commands such as Italics, Bold, etc. should be sent to the printer device as standard ISO sequences which will be translated by the installed printer driver to the correct printer-specific sequence for the printer being used. (As long as that printer and driver support what you asked for). The ISO printer sequences are listed in the Enhancer, A500, and A2000 manuals. AmigaBasic 1.1 LPRINT used to eat initial escape characters. The workaround was to instead OPEN "PRT:" FOR OUTPUT AS #n, then PRINT#n "whatever". I just checked 1.2 AmigaBasic's LPRINT and it works properly, and does not eat initial escape sequences. 2. Under 1.2, the correct way to generate foreign accented characters is through the use of DeadKeys. The 1.2 Enhancer manual shows the DeadKeys defined on the US and international A1000 keyboards. In the manual diagrams, the DeadKeys are shaded gray and each have an accent key shown on their keycap. To type any valid accented letter which is part of the international ASCII set, you press ALT AND the shaded key with the desired accent, then type the letter that you want accented. This allows you to type foreign characters in most programs. It works in string requesters, in CLI, in Ed, and in AmigaBasic 1.2. (It does not work in programs which use unprocessed RAW key input). So, on a US keyboard for instance, ALT/f a is an 'a' with a ' accent. ALT/g a is an 'a' with a ` accent ALT/h e is an 'e' with a ^ accent ALT/j n is an 'n' with a ~ accent ALT/k u is a 'u' with an umlaut (..) accent So, If you want to print foreign characters with AmigaBasic 1.2, you just type them in your strings. No escapes required. Using the DeadKeys, just put those characters in your normal quoted string and LPRINT the string. ---------------------------------------------------------------------- REM - HERE IS AN AMIGABASIC EXAMPLE OF 1. and 2. ABOVE: REM - Escape Test REM - Remember, If your printer/driver can't do Bold or Italics, it won't. Bold$ = CHR$(27) + "[1m" Italic$ = CHR$(27) + "[3m" Normal$ = CHR$(27) + "[0m" LPRINT Bold$;"Bold Test";Normal$ LPRINT Italics$;"Italics Test";Normal$ LPRINT "DeadKey Test: (accented letters)" \ \ I can't show the accented characters in this message. Just type them in as explained above. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CATS >>Commodore Amiga Technical Support<< UUCP ...{allegra,ihnp4,rutgers}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=