SUMMARY: use of tput - where can I find elements it takes

From: David Bremer <DaveB_at_healthotago.co.nz>
Date: Wed, 30 Apr 1997 12:24:21 +1200

The answer, from Ross Alexander, was
"man 4 terminfo see also: tic, man"
I had looked there - but must have missed the bit I needed. The man page
lists all the things I could ever want to do - esp in the string types

Anthony Talltree suggested that I "Try the GNU one from
prep.ai.mit.edu."

and there were a few people advising me to check O'Reilly's Sed&Awk -
which I have and also strongly recommend - but it doesn't mention the
use of screen handeling that tput gives.

Thanks for all the help

origonal query follows




>someone once showed me the use of tput in awk to manipulate the screen


>eg:
>To re-type on the same line set variables "lnup" and "ceol" in a BEGIN
>by:
>"tput cuu1" | getline lnup
>close("tput cuu1")
>"tput el" | getline ceol
>close("tput el")
>
>then issue print commands for "lnup" and "ceol" when you need to
>
>Now I think this is pretty neat and am wondering what else I can do
>
>However, this guy (who was only here on shrot term consultancey) is now
>long gone
>
>My question is:
>Where on earth is a list of items that you can use for tput? I've
>checked out its man page, stty & terminfo man pages - even tried "stty
>-a" and can't find any reference to things such as "ccu1" or "el" as
>used above (which I know work).
>
>(BTW - yes - I've heard that perl is wonderful - but at the moment I
>want to come to terms with awk)
>
>TIA
>
>Dave
>
>--
>Clinical Account Manager, Information Systems
>Healthcare Otago (Dunedin NZ)
>
>Ph external: 03 - 4740999
>Ph internal: NB CHANGE extn 8830
>email: daveb_at_healthotago.co.nz
>
>Pretentious quote of the week/month (whatever):
>#What is a magician but a practising theorist?
> Obi-Wan Kenobi
>
Received on Wed Apr 30 1997 - 02:37:06 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT