[Ovirt-devel] [PATCH node-image] Set "linux" as the terminal type.

Jeremy Katz katzj at redhat.com
Sat Feb 7 04:20:32 UTC 2009


On Feb 6, 2009, at 8:58 PM, Perry Myers <pmyers at redhat.com> wrote:

> Jeremy Katz wrote:
>> On Friday, February 06 2009, Perry Myers said:
>>> Jeremy Katz wrote:
>>>> On Friday, February 06 2009, Darryl L. Pierce said:
>>>>> Creates /home/.bash_profile and exports the TERM environment  
>>>>> variable.
>>>> If root logs in from some other terminal type (say, an xterm)  
>>>> over ssh,
>>>> this is going to break.
>>> Hmm, what should we set term to then?  The problem I've been  
>>> having is  that when sshing from gnome-terminal to a Node I get  
>>> problems because TERM is set to xterm and w/ that it doesn't like  
>>> top, vi, etc...  Setting to linux seems to clear that up.
>> It looks like you're removing the relevant terminfo files
>> (/usr/share/terminfo/*) and so any app that requires termcap  
>> information
>> isn't going to work.  You're getting lucky with linux as
>> a) there are also copies in /lib/terminfo and
>> b) linux is sort of close to xterm for the set of capabilities needed
>> for top
>
> Hmm, /usr/share/terminfo is only about 432k so I suppose we could  
> just stop blacklisting those files.

And it's 432k of text so will compress remarkably well :)

Jeremy




More information about the ovirt-devel mailing list