-----Original Message-----
From: Ron Hudson <ron.hudson(a)sbcglobal.net>
Sent: Oct 17, 2004 3:31 PM
To: simh(a)trailing-edge.com, Kevin Handy <kth(a)srv.net>et>,
Classic Computers <cctalk(a)classiccmp.org>
Subject: Re: [Simh] Gah! ascii don't work??!
On Oct 17, 2004, at 12:32 PM, Kevin Handy wrote:
Ron Hudson wrote:
simh running rsts
print chr$(27);"[2J"
Try
print chr$(27+128);"[2J"
RSTS plays odd games with the escape character (prints it as
a dollar sign most of the time), and setting the parity bit helps.
There are various "open" modes, and terminal settings that
will bypass this, but this is easier.
> prints
>
Ready
10 print chr$(27+128);"[2J"
run
NEW 12:25 PM 17-Oct-84
?[2J
Ready
--------------
nope, that don't do it either. It's the same output on the terminal too.
What about +256? are they 8 bit chars? hmm no that would just be 27
again...
chr$ does a MODULO right?
----------------------
Ashley says:
Ron,
The way I always cleared the screen in Basic-Plus on RSTS on a VT50 or VT52
terminal was:
PRINT CHR$(155)+"H"+CHR$(155)+"J"
The CHR$(155)+"H" positions the cursor in the top left of the screen
Then, the CHR$(155)+"J" clears the screen.
This is all from memory. I haven't actually written that kind of code
since the late 1970s.
Ashley