The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: jacob.ritorto@gmail.com (Jacob Ritorto)
Subject: [TUHS] I swear! I rtfm'ed
Date: Wed, 31 Dec 2014 18:11:28 -0500	[thread overview]
Message-ID: <CAHYQbfACyyXW=txMSKthNeranYex4Rc+oWi9oyW7V1MbDpUWWw@mail.gmail.com> (raw)
In-Reply-To: <54A48166.9060007@mhorton.net>

Well, it's just me teaching my kid recursion in c, so it's kind of informal
and I'm just clearing the screen to repaint it a second later with
changes.  It's too bad that curses adds so much overhead.  I'll have to
compare the resultant a.outs to confirm exactly how much..  Not that it
matters for a play program, really, more of a curiosity..

Thanks again Mary Ann!

On Wed, Dec 31, 2014 at 6:06 PM, Mary Ann Horton <mah at mhorton.net> wrote:

>  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> 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>
>> 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>
>>>
>>
>>
>
>
> _______________________________________________
> TUHS mailing listTUHS at minnie.tuhs.orghttps://minnie.tuhs.org/mailman/listinfo/tuhs
>
>
>
> _______________________________________________
> 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/5b30924e/attachment.html>


  reply	other threads:[~2014-12-31 23:11 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30 22:56 Jacob Ritorto
2014-12-30 22:59 ` Milo Velimirovic
2014-12-30 23:03 ` Larry McVoy
2014-12-31  0:03   ` Steve Nickolas
2014-12-30 23:05 ` Warren Toomey
2014-12-31  0:01   ` Jacob Ritorto
2014-12-31  2:22     ` Dan Stromberg
2014-12-31  2:33       ` Mary Ann Horton
2014-12-31  5:44         ` Jacob Ritorto
2014-12-31  6:02           ` [TUHS] K&R C on a modern Linux box? ( was Re: I swear! I rtfm'ed ) Derrik Walker v2.0
2014-12-31  6:16             ` Jacob Ritorto
2014-12-31  7:52               ` Derrik Walker v2.0
2014-12-31  6:24   ` [TUHS] I swear! I rtfm'ed Dave Horsfall
2014-12-31  6:36     ` Lyndon Nerenberg
2014-12-31 14:58       ` Tim Bradshaw
2014-12-31 15:31         ` arnold
2014-12-31 15:37           ` Milo Velimirovic
2014-12-31 17:37             ` Derrik Walker v2.0
2014-12-31 20:09               ` Larry McVoy
2014-12-31 22:25                 ` Jacob Ritorto
2014-12-31 16:11       ` Mary Ann Horton
2014-12-31 20:14 ` Clem Cole
2014-12-31 20:45   ` Erik E. Fair
2014-12-31 21:05     ` Clem Cole
2014-12-31 22:30       ` Jacob Ritorto
2014-12-31 23:06         ` Mary Ann Horton
2014-12-31 23:11           ` Jacob Ritorto [this message]
2015-01-01 15:45         ` Clem Cole
     [not found] <mailman.110.1420006566.3354.tuhs@minnie.tuhs.org>
2014-12-31 10:37 ` Johnny Billquist
2014-12-31 11:13   ` arnold
2014-12-31 16:25 Noel Chiappa
     [not found] <mailman.116.1420056874.3354.tuhs@minnie.tuhs.org>
2014-12-31 23:52 ` Johnny Billquist
2015-01-01  1:29   ` Erik E. Fair
2015-01-01 15:03     ` Johnny Billquist
2015-01-01 15:59       ` Mary Ann Horton
2015-01-01 20:18         ` Dave Horsfall
2015-01-01 20:11       ` Dave Horsfall
2015-01-01 16:01   ` Clem Cole
2015-01-01 16:11     ` Johnny Billquist
2015-01-01 16:59       ` Clem Cole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYQbfACyyXW=txMSKthNeranYex4Rc+oWi9oyW7V1MbDpUWWw@mail.gmail.com' \
    --to=jacob.ritorto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).