Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: nitram on November 28, 2016, 06:55:52 AM

Title: TERM=rxvt
Post by: nitram on November 28, 2016, 06:55:52 AM
Working on some scripting, can't figure this out, AFAIK stock TC7 x86 running Xorg.
Code: [Select]
tc@box:/$ env | grep TERM
COLORTERM=rxvt
TERM=rxvt

My system does not have rxvt installed:
Code: [Select]
tc@box:/$ $TERM
sh: rxvt: not found

Apps appears to provide only urxvt.tcz, not rxvt. Calling $TERM in a script will, therefore, not work. I looked in ~/ and /etc/skel/ and can't figure out how the TERM environment is set. Enlightenment please, thanks.
Title: Re: TERM=rxvt
Post by: curaga on November 28, 2016, 07:16:09 AM
TERM is not the name of the X terminal emulator, it is the name of the terminal's info file in /usr/share/terminfo. It controls which features the terminal supports mainly. The terminal sets it when starting.
Title: Re: TERM=rxvt
Post by: nitram on November 29, 2016, 01:36:23 PM
Now i understand, thanks for the explanation curaga.