Mary, this is exactly what I needed -- good to go now; thank you!

As a side note: Man, what an intimidating can of braindamage I've opened! :)

thanks all!

P.S. if anyone's bored enough, you can check out what we're up to at  I'm trying to get my 11yo kid to spend a little time programming rather than just playing video games when he's near a computer.  He'a actually getting through this stuff and is honestly interested when he understands it and sees it work -- and he even spotted a bug before me this afternoon!  Feel free to raise issues, pull requests, etc. if you like -- I'm putting him through the git committing and pair programming paces, so outside interaction would be kinda fun :)

P.P.S.  We're actually using 2.11bsd after all..

On Tue, Dec 30, 2014 at 9:33 PM, Mary Ann Horton <> wrote:
This is the right info.  Be sure to scroll up to see how to use tgetent, tgetstr, and tputs.  You aren't likely to need any padding.

    tgetent using getenv("TERM")    gets you the whole entry from /etc/termcap
    tgetstr of "cl"                            gets you the "clear" sequence
    tputs                                        outputs the "clear" sequence

On 12/30/2014 06:22 PM, Dan Stromberg wrote:
Check out
- especially the "cl" entry.

ISTR the database being at /etc/termcap normally.

On Tue, Dec 30, 2014 at 4:01 PM, Jacob Ritorto <> wrote:
oops, thanks and sorry!  I neglected to mention that this is in the context
of a c program.

On Tue, Dec 30, 2014 at 6:05 PM, Warren Toomey <> wrote:
2.11 BSD has clear (1).
Cheers Warren

On 31 December 2014 08:56:30 AEST, Jacob Ritorto <>
, but I can't see how you're supposed to clear the screen on a vt100 in
2.9BSD.  I guess printf'ing ("\033c") would do the trick, but I assumed
there was a more proper way; something that leverages the vt100 termcap
entry and does the right thing.  Anyone?



TUHS mailing list

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

TUHS mailing list

TUHS mailing list

TUHS mailing list