1. Clear position
- Posted by =?iso-8859-1?B?fgI=?= <mwfch at MWEB.CO.ZA> Jun 24, 2000
- 455 views
------=_NextPart_000_0004_01BFDD96.13C25900 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How can I clear a certain place on the screen without clearing the hole = screen with clear_screen() ? Thanks . Ferdinand Greyling from Terminal Software ------=_NextPart_000_0004_01BFDD96.13C25900 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>How can I clear a certain place on the = screen=20 without clearing the hole screen with</FONT></DIV> <DIV><FONT face=3DArial size=3D2>clear_screen() ? Thanks .</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Ferdinand Greyling</FONT></DIV> <DIV><FONT face=3DArial size=3D2>from</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Terminal = ------=_NextPart_000_0004_01BFDD96.13C25900--
2. Re: Clear position
- Posted by Peter Millan <sonic at GLOBALFREEWAY.COM.AU> Jun 26, 2000
- 435 views
On 24 Jun 00, at 4:38, ~ wrote: > How can I clear a certain place on the screen without clearing the hole screen > with > clear_screen() ? Thanks . > I'm assuming you want to clear a section in text mode. x1, y1, x2, y2 are to coordinates of the box you want to clear. It could be made faster by instead poking to video memory. -- untested code ahead! procedure clear_area(integer x1, y1, x2, y2) for row = y1 to y2 do position(row, x1) puts(1, repeat(32, x2-x1)) end for end procedure Hope this is what you're after. Pete Millan