Re: Clear position

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu