mendozag@pur-ee.UUCP (Grado) (09/01/88)
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. Thanks in advance mendozag@ecn.purdue.edu ...ihnp4!pur-ee!mendozag
jkjl@munnari.oz (John Lim) (09/02/88)
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