Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pdn!palan!jc3b21!fgd3 From: fgd3@jc3b21.UUCP (Fabbian G. Dufoe) Newsgroups: comp.sys.amiga Subject: Re: Help with C!!!! Message-ID: <976@jc3b21.UUCP> Date: 28 Jul 90 02:32:50 GMT References: <28589@cc.usu.edu> Organization: St. Petersburg Jr. College, FL Lines: 30 From article <28589@cc.usu.edu>, by SLMT9@cc.usu.edu: > > 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. > I would really appriciate any help that anyone can give me. > > Joshua > SLMT9@cc.usu.edu There are a number of ways to do it. If you're using Intuition windows you can use the Move() function. If you're using console windows you can emit ANSI escape sequences via printf() or putchar(). The escape sequences are documented in The AmigaDOS Manual's appendix entitled "Console Input and Output on the Amiga" and in Chapter 33 of the Rom Kernel Manual (Console Device). To move the cursor to line 5, column 12 of a console window send the following string to the console window: "0x9b5;12H" --Fabbian Dufoe 350 Ling-A-Mor Terrace South St. Petersburg, Florida 33705 813-823-2350 UUCP: fgd3@jc3b21.UUCP ...uunet!pdn!jc3b21!fgd3