[TUHS] I swear! I rtfm'ed

Mary Ann Horton mah at mhorton.net
Thu Jan 1 09:06:14 AEST 2015


Jacob,

Are you just clearing the screen in an otherwise scroll-oriented 
program, or are you doing graphics by clearing and repainting a similar 
screen when something changes?

The termcap "cl" method is perfect for the former, but curses is better 
suited for the latter.

     Mary Ann

On 12/31/2014 02:30 PM, Jacob Ritorto wrote:
> I'm actually running an old CIT-101 from c.itoh.  The pdp11 is 
> currently just simh on a raspberry pi, but I have a lot of pdp11 
> hardware in various states of disrepair.  my 11/73 ran 2.11bsd nicely 
> has a burned out power supply and I haven't been able to fix it.
>
> I checked out the curses man page in 2.11 and tried to use curses 
> clear, but it really does tack on a lot of overhead & slows things 
> down.  So I'm now tempted to just cheat, keep it simple, find a simple 
> escape string that works on real vt100s as well as xterms, etc. and 
> just printf it.
>
>
> On Wed, Dec 31, 2014 at 4:05 PM, Clem Cole <clemc at ccc.com 
> <mailto:clemc at ccc.com>> wrote:
>
>     Ah - that makes sense,  and since VT-100 are not fully ANSI,
>     that's likely why it's not listed in my circa 1976 VT-100
>     programmers manual and probably why it does not work for Jacob. ;-)
>
>     Clem
>
>     On Wed, Dec 31, 2014 at 3:45 PM, Erik E. Fair
>     <fair-tuhs at netbsd.org <mailto:fair-tuhs at netbsd.org>> wrote:
>
>         The sequence ESC-c is ANSI X3.64 for "reset to initial state"
>         which
>         happens to clear the screen, among other things. I still use it
>         frequently to reset Mac OS X "Terminal" windows to a sane state,
>         manually entered.
>
>                 Erik <fair at netbsd.org <mailto:fair at netbsd.org>>
>
>
>
>
>
> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20141231/ad3df8cf/attachment.html>


More information about the TUHS mailing list