Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!ucbvax!pasteur!dog.ee.lbl.gov!nosc!ucsd!mvb.saic.com!ncr-sd!serene!cbmami!jason From: jason@cbmami.UUCP (Jason Goldberg) Newsgroups: comp.sys.amiga.programmer Subject: Help a rookie! Message-ID: <18d4fa1e.ARN0f18@cbmami.UUCP> Date: 15 Mar 91 20:14:06 GMT Reply-To: jason@cbmami.UUCP Followup-To: comp.sys.amiga.programmer Lines: 33 Hi, I am just getting my feet wet in 'C', I am a fairly experienced programmer, and am very confortable in AmigaDos, I am just trying to learn vanilla ANSI C, before I jump into Amiga specific code. I have come up with a few questions: 1. How can I get output to the printer? I have tried using fopen() with "PRT:" as the file name, and then fprintf() to send the output to the file. I tried several different modes with the fopen(), but I can't get the printer to do anything... 2. What are, or where can I find the ANSI codes for controlling the cursor in a colsole window (i.e. the CLI or WSHELL). I am trying to do stuff like cursor up, cursor down, left, right, home, clear, etc... Is there are better way than to just print the ANSI codes, keeping in mind I need to be able to do this in a console window, and not on my own screen. 3. Is there a good way to be able to read a single character from the keyboard (without a return)? I know that I can open a RAW: window but then I have to use write() instead of fprintf() or sprintf() then write()... Basically, I am just trying to find ways to write code similar to my classmates (who use Turbo C on the PC). On there machines getchar() does not need a return, and they have commands like gotoxy() to move around the cursor. Any help/pointers are greatly appreciated... -Jason- --------------------------------------------------------------------------- Jason Goldberg UUCP: ucsd!serene!cbmami!jason Del Mar, CA