Red Hat Bugzilla – Bug 76102
emacs terminal not recognised
Last modified: 2015-01-07 19:01:12 EST
Description of Problem:
When I start a shell in xemacs, I get an error "terminal type emacs not recognised" from
/etc/profile's use of tput.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start XEmacs
2. M-x shell
I reported this bug in earlier releases of RH and it was apparently fixed, although I didn't
test the fix as at the time I was using my own build of XEmacs. I'm now using the
supplied RPM and still get this problem. I may well have missed something, but for some
reason I can't query Bugzilla at the moment to find out the story from last time.
Sorry, I mean /etc/bashrc, not /etc/profile.
Perhaps you were thinking of bug 52660?
Anyway reproduced with bash.
TERM=dumb may be one possible workaround. Or perhaps TERM
emacs could be special cased in bashrc?
I need to look into this morning.
What I've always done is added "$TERM" != "emacs" before the call of tput
But I think the real fix is to add an emacs term description to the termcap
and/or terminfo db. How was it fixed before?
I just recalled that setting `system-uses-terminfo' to `t' fixes this.
Setting it in default.el in next build.
I'm happy with this solution (I've put (setq system-uses-terminfo t) in my init.el) so you can close the bug if you like.