Where is system-wide TERM set?

Leroy Tennison leroy at datavoiceint.com
Tue Mar 10 15:08:19 UTC 2020


What started this is I have some non-GUI systems where vi works fine on some but does odd things when Home/End keys are pressed on others.  They are all Ubuntu 16.04.6 LTS, all kernel 4.4.0-174-generic and x86_64.  Theoretically they were installed identically.

I found that the difference was in the TERM setting, 'echo $TERM' on "working" systems returns xterm, on "non-working" systems it returns linux.  Using "grep -r 'TERM.*xterm' *" in /etc returns /etc/alternatives/x-terminal-emulator.  However, its test (locale charmap) returns UTF-8 in both cases which should set TERM to uxterm (not true in either case). Using "update-alternatives --config x-terminal-emulator" shows /usr/bin/lxterm, priority 30, auto mode in both cases.

So where is TERM set?  Thanks in advance for any help.

Harriscomputer

Leroy Tennison
Network Information/Cyber Security Specialist
E: leroy at datavoiceint.com


[cid:Data-Voice-International-LOGO_aa3d1c6e-5cfb-451f-ba2c-af8059e69609.PNG]


2220 Bush Dr
McKinney, Texas
75070
www.datavoiceint.com<http://www..com>


This message has been sent on behalf of a company that is part of the Harris Operating Group of Constellation Software Inc.

If you prefer not to be contacted by Harris Operating Group please notify us<http://subscribe.harriscomputer.com/>.



This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20200310/af123d8a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8276 bytes
Desc: Data-Voice-International-LOGO_aa3d1c6e-5cfb-451f-ba2c-af8059e69609.PNG
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20200310/af123d8a/attachment.png>


More information about the ubuntu-server mailing list