Bug 64803 - tput shouldn't be run in emacs shells
tput shouldn't be run in emacs shells
Product: Red Hat Linux
Classification: Retired
Component: emacs (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-05-12 20:54 EDT by Reuben Thomas
Modified: 2007-04-18 12:42 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-05-15 17:59:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Reuben Thomas 2002-05-12 20:54:21 EDT
Description of Problem:

The line in /etc/bashrc saying

if [ -x /usr/bin/tput ]; then

should be

if [ "$TERM" != "emacs" -a -x /usr/bin/tput ]; then

so that tput is not run in emacs shells, which doesn't work.

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

How Reproducible:

Steps to Reproduce:

Actual Results:

Expected Results:

Additional Information:
Comment 1 Bill Nottingham 2002-05-13 11:12:33 EDT
This implies emacs doesn't have a proper termcap/terminfo entry.
Comment 2 Trond Eivind Glomsrxd 2002-05-14 19:07:42 EDT
What's the problem you're seeing? I'm not noticing anything when running shells
in emacs...
Comment 3 Reuben Thomas 2002-05-15 17:59:39 EDT
When I start a shell in xemacs (my own compiled version, but I have the emacs 
RPMs installed), I get:

"unknown terminal emacs"

Since I have emacs-21.2 installed, and there's no emacs entry in /etc/termcap (but 
there is an eterm), I presume there's something wrong. I will probably revert to the 
XEmacs RPMs now that you ship 21.4 in any case, but that shouldn't be the 
Comment 4 Trond Eivind Glomsrxd 2002-07-29 17:07:28 EDT
Closing, as I can start a shell multiple  ways in emacs and never see this.

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