FS#48264 - [rxvt-unicode] $TERM is set to "1"
Attached to Project:
Community Packages
Opened by Michal Svoboda (pht) - Saturday, 20 February 2016, 08:28 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 01 March 2016, 04:21 GMT
Opened by Michal Svoboda (pht) - Saturday, 20 February 2016, 08:28 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 01 March 2016, 04:21 GMT
|
Details
running new instance of rxvt-unicode results in a shell that
has $TERM set to "1" (instead of something sane, like
"xterm" or "linux"). Which obviously results in unusable
arrow keys, etc.
This happens since some recent (~1 month) system update. I have this in .Xdefaults urxvt*termName: linux but I found that removing Xdefaults does not help the issue. The workaround so far is to manually 'export TERM=linux' in the .bashrc |
This task depends upon
Edit: Is rxvt-unicode-terminfo up to date?
Yes, all packages are up to date.
I'm getting it on multiple computers, and I think it might relate to the .Xdefaults.
I can try some experiments to pinpoint it.
I didn't ask about "all packages", I asked about one specifically.
$ grep termName .Xdefaults
urxvt*termName: linux
$ xrdb .Xdefaults
$ xrdb -query|grep termName
urxvt*termName: 1
$ xrdb -nocpp .Xdefaults
$ xrdb -query|grep termName
urxvt*termName: linux
$ echo linux|cpp
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "<stdin>"
1
$ echo | cpp -dM|grep linux
#define __linux 1
#define __linux__ 1
#define __gnu_linux__ 1
#define linux 1
So this is not urxvt's fault, and probably not xrdb's either. But I don't know how to escape the word linux in my .Xdefaults, so that it does not get expanded by cpp. Can you help me with this?
FS#48377to deal with the macro expansion issue.