The terminfo "database", these days, is some kind of binary...  and, from
the source file(s), there is a program to "compile" them into a structure
the curses library can just suck in as chunk and then use.

I kinda miss the old /etc/termcap ...   yes, I've been around.  Everything
balances out over time...

(chuckles)

"When I was _your_ age, we didn't have none of these fancy graphics you
kids have these days... Naw, if you wanted to see pretty pictures, you ran
your job to the card punch 'n held 'em up to the light!"

And, yeah, I recall the magtapes w/ line printer files which would
overprint to make pictures...  (  RECFM=FBA LRECL=133 BLKSIZE=1330 )

-soup

On Thu, Oct 19, 2017 at 7:44 AM, Paul Flint <[email protected]> wrote:

> Greetings,
>
> Note that I missed a '"' in the last message. ...My bad.
>
> When I did a "man term" I discovered that terminal types were kept in
> alphabetical order under the directory "/lib/terminfo".  On my distro of
> Linux, A painless way to list them is the following:
>
> find /lib/terminfo/. |cut -d "/" -f 6 |grep . |less && wc -l
>
> Which lets you look at them and tells you how many there are.
>
> My first attempt, which is also valid is as follows:
>
> sudo apt-get install tree or yum install tree
>
> Then this bit of flummery:
>
> tree /lib/terminfo | cut -c 14- |strings
>
> Either of these will give you a list of terminal types available on your
> system.
>
> My Linux Mint appears to have 41 choices.
>
> To pick one for use try:
>
> echo $TERM       # note where you start.
> export TERM=ansi # you can pick one of the terminal types
>                  # both "dumb" and "linux" are viable
> echo $TERM       # see the new type.
>
> Enjoy.
>
> Flint
>
> On Wed, 18 Oct 2017, Paul Flint wrote:
>
> Date: Wed, 18 Oct 2017 19:15:18 -0400 (EDT)
>> From: Paul Flint <[email protected]>
>> To: Linux on 390 Port <[email protected]>
>> Subject: Re: TERM=linux instead of TERM=dumb
>>
>> Greetings John Campbell and Dell Harris,
>>
>> I find that the output from the excellent line of bash provided below by
>> Big John great entertainment.  But before we disappear into troff (or
>> sphinx :^), could I suggest a different approach if you are "man" enough...
>>
>> Try this:
>>
>> man term
>>
>> Much information will come your way, and I look forward to further
>> discussion of this issue.
>>
>> My favorite resolution of this has always been to type in:
>>
>> echo $TERM
>>
>> I always the same answer...
>>
>> xterm
>>
>> Finally, the bash line supplied by John will only work with "root
>> privilege.  For now I would advise staying away from root, particularly
>> on production systems...  I would be happy to consult on this topic some
>> more at your convenience and pleasure.
>>
>> Sincerely,
>>
>> Flint
>>
>> On Wed, 18 Oct 2017, John Campbell wrote:
>>
>> Date: Wed, 18 Oct 2017 18:53:15 -0400
>>> From: John Campbell <[email protected]>
>>> Reply-To: Linux on 390 Port <[email protected]>
>>> To: [email protected]
>>> Subject: Re: TERM=linux instead of TERM=dumb
>>>
>>> Well...
>>>
>>> Perhaps pawing through /etc/profile _might_ be edifying.
>>>
>>> You can cheat by:
>>>
>>> cd /etc
>>> find . -type f -print | while read F ; do grep TERM "${F}" && echo
>>> "${F}" ;
>>> done
>>>
>>> to find out where this can be getting set.  It might even be somewhere
>>> under /etc/defaults but don't quote me on that.
>>>
>>> Mind you, I don't currently have access to BFI (Big Fast Iron, either a
>>> zSeries or an S/390) at this point so YMMV.
>>>
>>> A long, long time ago when there were many, many deviants of Unix, I
>>> tended
>>> to paw through various /etc and /usr/include files to pick up tricks.
>>> Man
>>> pages gave some hints but the actual _structures_ you need for ioctl()
>>> and
>>> fcntl() calls were a bit more entertaining :-)  ...
>>>
>>> -soup
>>>
>>> On Wed, Oct 18, 2017 at 4:51 PM, Dell Harris <[email protected]>
>>> wrote:
>>>
>>> Hi,
>>>>
>>>> I'm trying to figure out why TERM is being set to linux instead of dumb
>>>> on
>>>> the GRUB_CMDLINE_LINUX_DEFAULT in the /etc/default/grub line of a
>>>> system-z
>>>> guest on install of SLES 12 SP2.   TERM=dumb is set in the parmfile but
>>>> after the install it's set to linux.   Does anyone know of a way to get
>>>> it
>>>> to set TERM=dumb on install?
>>>>
>>>> Thanks
>>>> Dell Harris
>>>>
>>>> ----------------------------------------------------------------------
>>>> For LINUX-390 subscribe / signoff / archive access instructions,
>>>> send email to [email protected] with the message: INFO LINUX-390
>>>> or
>>>> visit
>>>> http://www.marist.edu/htbin/wlvindex?LINUX-390
>>>> ----------------------------------------------------------------------
>>>> For more information on Linux on System z, visit
>>>> http://wiki.linuxvm.org/
>>>>
>>>>
>>>
>>>
>>> --
>>> John R. Campbell         Speaker to Machines          souperb at gmail
>>> dot
>>> com
>>> MacOS X proved it was easier to make Unix user-friendly than to fix
>>> Windows
>>> "It doesn't matter how well-crafted a system is to eliminate errors;
>>> Regardless
>>> of any and all checks and balances in place, all systems will fail
>>> because,
>>> somewhere, there is meat in the loop." - me
>>>
>>> ----------------------------------------------------------------------
>>> For LINUX-390 subscribe / signoff / archive access instructions,
>>> send email to [email protected] with the message: INFO LINUX-390
>>> or visit
>>> http://www.marist.edu/htbin/wlvindex?LINUX-390
>>> ----------------------------------------------------------------------
>>> For more information on Linux on System z, visit
>>> http://wiki.linuxvm.org/
>>>
>>>
>> Kindest Regards,
>>
>>
>>
>> ☮ Paul Flint
>> (802) 479-2360 Home
>> (802) 595-9365 Cell
>>
>> /************************************
>> Based upon email reliability concerns,
>> please send an acknowledgement in response to this note.
>>
>> Paul Flint
>> 17 Averill Street
>> Barre, VT
>> 05641
>>
>>
> Kindest Regards,
>
>
>
> ☮ Paul Flint
> (802) 479-2360 Home
> (802) 595-9365 Cell
>
> /************************************
> Based upon email reliability concerns,
> please send an acknowledgement in response to this note.
>
> Paul Flint
> 17 Averill Street
> Barre, VT
> 05641
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>



-- 
John R. Campbell         Speaker to Machines          souperb at gmail dot
com
MacOS X proved it was easier to make Unix user-friendly than to fix Windows
"It doesn't matter how well-crafted a system is to eliminate errors;
Regardless
 of any and all checks and balances in place, all systems will fail because,
 somewhere, there is meat in the loop." - me

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to