Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!spool.mu.edu!uunet!tnc!m0154 From: m0154@tnc.UUCP (GUY GARNETT) Newsgroups: comp.sys.amiga.programmer Subject: Re: Help a rookie! Message-ID: <761@tnc.UUCP> Date: 21 Mar 91 21:35:07 GMT References: <18d4fa1e.ARN0f18@cbmami.UUCP> Reply-To: m0154@tnc.UUCP (GUY GARNETT) Organization: The Next Challenge, Fairfax, Va. Lines: 34 [Printing output to PRT:] Don't forget to close it. Printer output is buffered, and I don't believe that files are closed automagically when your program exits. Closing the file will ensure that all the data gets printed (and besides, it's good programming practice). [Ansi codes for controlling the cursor] I believe they are listed in both the RKM and the AmigaDOS manuals. In general, most VT-100 type codes work (and are almost identical to the codes implemented by IBM for their ANSI.SYS driver, if you are more familliar with that). The Rom Kernal Manual also documents Ansi codes for controlling the printer (they are translated to printer-specific control codes by the preferences printer driver, making your code wonderfully portable). Look under "Console Device" and "Printer Device" in the manuals. [reading RAW input from a console] I believe that there is also a sequence to place the console into RAW mode temporarily. (I think; I could be very wrong on this one) Check the AmigaDOS manual. You can probably write a simple library of these functions, and then include it in each of your programs. If you don't already have them, get a complete set of the Rom Kernal Manuals, and the AmigaDOS manual. THe RKM's are published by Addison-Wesley, and the AmigaDOS manual is published by Bantam. It is also a good idea to get a copy of the Hardware Reference Manual, and the Intuition Manual (also from Addison Wesley). Another recommended book is "Inside the Amiga with C", which explains how to do many amiga-specific things. Good Luck! Wildstar