Steve
Since each terminal used on CP/M machines had it's own code to clear the
screen, you'll have to write your own clear screen function. Control-Z
was a popular choice on many machines, so you could clear the screen
using PRINT CHR$(26); Maybe one of the regulars on this group knows
what the code is for the Eagle.
Steve Mitchell
Alexandria, VA
ssm...@erols.com
If you look at some generic CP/M programs, you'll find that was
common. Just print at least 24 blank lines and then start printing
new text from the bottom of the screen!
I use Montezuma Micro CP/m on my Tandy Model IV which emulates an
ADM-3A terminal. Its clear screen command was a ^Z, so you could
write something like
10 CLS$=CHR$(26)
...
PRINT CLS$;
Note trailing semicolon so that you don't move off the top line!
Jim Korman
Another popular one was <ESC>* which would be PRINT CHR$(27);"*"
Roy
: Steve
Instead of 24 PRINT statements, a generic alternavive would be to
print 24 "CHR$(10)" which, if I got the syntax correct, would be
24 linefeed (LF) characters to scroll the 24 line display away.
As others have said, some computers or terminals have a set of
characters to clear the screen; some small BASIC programs can be
written to determine by trial and error which characters would work.
Herb JOhnson
--
Herbert R. Johnson http://pluto.njcc.com/~hjohnson
hjoh...@pluto.njcc.com voice 609-771-1503, New Jersey USA
amateur astronomer and telescope tinkerer
reseller of classic Macs & accessories from Plus to PowerMac
S-100 & 8-inch drive manuals and parts, call for "Dr. S-100"
If you want to play around to see what various codes do to your screen,
type this short program into your MBASIC interpreter.
10 A$=INKEY$
20 IF A$="" THEN 10
30 IF A$=CHR$(27) THEN END
40 PRINT A$;
50 GOTO 10
Then type away. An ESC will end the program. A control-C will probably
also break out of it. Try various control codes (hold down the control key
while typing other keys) and see what they do. Some terminals can do some
really goofy things.
If you get things into a real strange state, to the point where you can't
even return to normal, just reboot.
-Frank
"Paul Schlyter" <pau...@saaf.se> wrote in message
news:9sh9la$fse$1...@merope.saaf.se...