Bug 1577159 - xterm in f27 has again XTERM=xterm instead xterm-256color
Summary: xterm in f27 has again XTERM=xterm instead xterm-256color
Alias: None
Product: Fedora
Classification: Fedora
Component: xterm
Version: 27
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2018-05-11 11:11 UTC by Adam Pribyl
Modified: 2018-05-30 14:38 UTC (History)
2 users (show)

Fixed In Version: xterm-333-2.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-05-30 13:51:46 UTC
Type: Bug

Attachments (Terms of Use)

Description Adam Pribyl 2018-05-11 11:11:29 UTC
Description of problem:
After dropping the https://fedoraproject.org/wiki/Changes/Drop_256term.sh
hack introduced in f18, the xterm in f27 has by default again TERM set to "xterm" - so after 5+ years the setting was backed to outdated setting.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. xterm
2. echo $TERM

Actual results:

Expected results:

Additional info:
Not sure where to fix this - either in the xterm package somehow or the /etc/X11/Xresources can set
XTerm*termName: xterm-256color
to make this default?

Comment 1 ivan 2018-05-30 11:24:29 UTC
same problem here after upgrading from f26 to f28. Just lost 2+ hours wondering what had happened to my vim colors in tmux :(

setting "XTerm*termName: xterm-256color" doesn't work for me, no idea why. My Xresource file is OK, changing stuff like scrollbar visibility, merging the file and launching xterm show the changes.

some workarounds:
- start xterm with "-tn xterm-256color"
- get 256term.sh from f26 and put it back to f28's /etc/profile.d

Comment 2 Miroslav Lichvar 2018-05-30 13:31:16 UTC
Setting the termName resource in .Xresources seems to work for me as expected.

I think the best place to change the default would be in the xterm's applications default files (/usr/share/X11/app-defaults/*XTerm-color), but setting termName there doesn't seem to work.

Comment 3 Miroslav Lichvar 2018-05-30 13:51:46 UTC
Actually, the xterm's default files used by default are /usr/share/X11/app-defaults/*XTerm (no -color).

Ok, I've changed the default termName in xterm-333-2.fc29. I'm just not sure how many things this will break. Let's keep it in rawhide, at least for now.

Note You need to log in before you can comment on or make changes to this bug.