<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19231</bug_id>
          
          <creation_ts>2009-03-18 18:32:41 +0300</creation_ts>
          <short_desc>eshell should set an appropriate TERM</short_desc>
          <delta_ts>2014-11-05 20:17:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.0</product>
          <component>emacs22-common</component>
          <version>4.0</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          
          
          <qa_contact name="Q.A. 4.0">qa-4.0</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87482</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-03-18 18:32:41 +0300</bug_when>
    <thetext>emacs22-common-22.1-alt2 

Now eshell inherits the TERM from the environment in which Emacs was started. But of course, eshell is not suited to process the escape-chars of the other terminals. Demonstration (see the junk in the output):

~/tmp/test-git $ git status
# On branch A
# Untracked files:
#   (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed)
#
#	[31md[m
nothing added to commit but untracked files present (use &quot;git add&quot; to track)
~/tmp/test-git $ echo $TERM
rxvt-unicode
~/tmp/test-git $ 

Expected: eshell should pass to the child programs a suitable TERM.

I don&apos;t know which one is the best, for now, I use dumb (the output becomes at least readable):

~/tmp/test-git $ export TERM=dumb
~/tmp/test-git $ git status
# On branch A
# Untracked files:
#   (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed)
#
#	d
nothing added to commit but untracked files present (use &quot;git add&quot; to track)
~/tmp/test-git $</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87483</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-03-18 18:33:26 +0300</bug_when>
    <thetext>It&apos;s about M-x eshell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87487</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-03-18 20:53:19 +0300</bug_when>
    <thetext>This is a bug only in a graphical instance of Emacs. Inside terminals, it&apos;s ok to use the inherited TERM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87490</commentid>
    <comment_count>3</comment_count>
    <who name="Eugene Vlasov">eugvv</who>
    <bug_when>2009-03-18 21:51:12 +0300</bug_when>
    <thetext>How about post this bugs direct to upstream (M-x report-emacs-bug)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109347</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2010-05-20 06:46:22 +0400</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; How about post this bugs direct to upstream (M-x report-emacs-bug)?

Discussing the issues with upstream developers would be the next step for me; first, I take a note of the missing feature here.

If I write these things down here, then I and other people will have a list of bugs and wishes relevant for a certain distro, which they can consult and grasp what problems they will meet if they use this distro, what missing features they would like to be implemented.

Even for &quot;feature requests&quot;, I&apos;d like to have a single (not per package) public (so that others can join) place with a list of the features missed, so that I can look at the list at any time in the future and decide whether I want to put more effort into one or another issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109348</commentid>
    <comment_count>5</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2010-05-20 06:46:23 +0400</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; How about post this bugs direct to upstream (M-x report-emacs-bug)?

Discussing the issues with upstream developers would be the next step for me; first, I take a note of the missing feature here.

If I write these things down here, then I and other people will have a list of bugs and wishes relevant for a certain distro, which they can consult and grasp what problems they will meet if they use this distro, what missing features they would like to be implemented.

Even for &quot;feature requests&quot;, I&apos;d like to have a single (not per package) public (so that others can join) place with a list of the features missed, so that I can look at the list at any time in the future and decide whether I want to put more effort into one or another issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148496</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2014-11-05 20:17:03 +0300</bug_when>
    <thetext>В 4.0/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>