Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!ucsd!ucsdhub!esosun!seismo!uunet!munnari!jkjl From: jkjl@munnari.oz (John Lim) Newsgroups: comp.sys.mac.programmer Subject: Re: Clearing to the end of the line... Summary: clearing lines with blanks Keywords: cursor handling, porting Message-ID: <2337@munnari.oz> Date: 2 Sep 88 03:20:23 GMT References: <9063@pur-ee.UUCP> Organization: Comp Sci, Melbourne Uni, Australia Lines: 25 In article <9063@pur-ee.UUCP>, mendozag@pur-ee.UUCP (Grado) writes: > > I am porting a program from the PC to the MAC and everything seems > fine thanks to THINK C. However, I need a function to clear a line to > the end after the cursor position. > I know that with getxpos() and getypos() I can get the position > of the cursor but I havetrouble translating that to line coordinates. > I would appreciate any help I can get. > I had to implement a similar function when i ported gnuchess to the mac. Just do a for (i = getxpos(); i < 80 ; i++) cputs(" "); This is just off my head, so i might have got the syntatic sugar wrong... > Thanks in advance > > mendozag@ecn.purdue.edu > ...ihnp4!pur-ee!mendozag John Lim