Path: utzoo!attcan!uunet!lll-winken!uwm.edu!psuvax1!psuvm!uh2 From: UH2@psuvm.psu.edu (Lee Sailer) Newsgroups: comp.sys.amiga Subject: Re: Help with C!!!! Message-ID: <90208.104010UH2@psuvm.psu.edu> Date: 27 Jul 90 14:40:10 GMT References: <28589@cc.usu.edu> Organization: Penn State University Lines: 29 In article <28589@cc.usu.edu>, SLMT9@cc.usu.edu says: > > This is a question to all of you C guru's out there. Is there a way >to place the CURSOR in a predetermined spot on the screen. Say move it from >the bottom right hand corner to the upper left to write in that location again >something like the LOCATE command in basic. If you think about it, this isn't really a C question, it is an Amiga question. Here's ibe Amigoid way of thinking about it. 1. Do ypou really mean "screen" or do you mean a window on the screen? Most i/o is to and from windows. 2. On the Amiga, TEXT is just a kind of GRAPHICS, so you want to open the graphics library and use its many many functions to do your work for you. 3. Every window w has a drawing structure w->RPort. The drawing and text routines all need it. 4. To move to position x,y (in pixels) try Move(&w->RPort, x, y);. 5. Put text there with Text(&w->RPort, "Hello, world.", 13) ; 6. and so on. Good luck.