[Simh] Gah! ascii don't work??!

Ron Hudson ron.hudson at sbcglobal.net
Sun Oct 17 15:31:29 EDT 2004


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?





More information about the Simh mailing list