1. Clear position

------=_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>&nbsp;</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--

new topic     » topic index » view message » categorize

2. Re: Clear position

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu