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

From: Ashley Carder <wacarder_at_usit.net>
Date: Sun Oct 17 17:44:59 2004

-----Original Message-----
From: Ron Hudson <ron.hudson_at_sbcglobal.net>
Sent: Oct 17, 2004 3:31 PM
To: simh_at_trailing-edge.com, Kevin Handy <kth_at_srv.net>,
        Classic Computers <cctalk_at_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


10 print chr$(27+128);"[2J"
NEW 12:25 PM 17-Oct-84


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
chr$ does a MODULO right?

Ashley says:

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.

Received on Sun Oct 17 2004 - 17:44:59 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:37:22 BST