Is there a word to clear the screen?

If you have any questions, remarks, ... if you need help... its here...

Is there a word to clear the screen?

Postby bobgillies » 13 Feb 2017 07:18

The DOS box that Oforth runs in prints screen text that fills the box's buffer so you can scroll back to see all the input and output since the start of the session. What I want is a word that clears the screen.

The reason I'm seeking such a word is so that I can do some rudimentary character animation by clearing the screen while doing a task calculations in the background that will subsequently update the screen with alphanumeric text. Sort of a crude "page flipping" similar to animating bitmapped sprites during a vertical blank interrupt, however the output I'm seeking is with alphanumeric characters instead.

I believe my old MVP Forth had a word called PAGE that clears the screen so that text output after executing PAGE will start or continue at the top of the screen.

Is there an equivalent word for PAGE in oforth.
bobgillies
 
Posts: 60
Joined: 24 Jan 2017 06:26

Re: Is there a word to clear the screen?

Postby Franck » 13 Feb 2017 21:33

There is no such a word. Console capabilities are currently very basic.

But, you can create it using the cls dos command :

Code: Select all
import: os

: cls
   "cls" _system drop ;


Franck
Franck
 
Posts: 162
Joined: 29 Oct 2014 19:01

Re: Is there a word to clear the screen?

Postby bobgillies » 13 Feb 2017 22:45

I'm much obliged, sir! :)

Bob
bobgillies
 
Posts: 60
Joined: 24 Jan 2017 06:26


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron