[TUHS] I swear! I rtfm'ed
Mary Ann Horton
mah at mhorton.net
Wed Dec 31 12:33:10 AEST 2014
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
tgetstr of "cl" gets you the "clear"
tputs outputs the "clear"
On 12/30/2014 06:22 PM, Dan Stromberg wrote:
> Check out https://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html#SEC30
> - especially the "cl" entry.
> ISTR the database being at /etc/termcap normally.
> On Tue, Dec 30, 2014 at 4:01 PM, Jacob Ritorto <jacob.ritorto at gmail.com> 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 <wkt at tuhs.org> wrote:
>>> 2.11 BSD has clear (1).
>>> Cheers Warren
>>> On 31 December 2014 08:56:30 AEST, Jacob Ritorto <jacob.ritorto at gmail.com>
>>>> , 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
>>>> TUHS at minnie.tuhs.org
>>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>> TUHS mailing list
>> TUHS at minnie.tuhs.org
> TUHS mailing list
> TUHS at minnie.tuhs.org
More information about the TUHS