From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: weird emacs shell behavior
Date: Fri, 17 Aug 2007 21:34:04 +0200 [thread overview]
Message-ID: <878x8aot03.fsf@baldur.tsdh.de> (raw)
In-Reply-To: 3esl6i10s5.fsf@freenet.de
Emilio Lopes <eclig@gmx.net> writes:
Hi Emilio,
>> The [32, etc are control characters that indicate colors. Try
>> turning them off in your shell's rc file or use "M-x ansi-term" to
>> see the colors.
>
> No need to resort to `ansi-term', which is a full terminal-emulator.
> You can have shell mode interpret those codes using
> `ansi-color-for-comint-mode-on'.
I did that and now I get nicely colored output, but still there are some
control characters left and each command is printed twice.
,----
| > echo "Hello, test!" <== That's what I typed. It's bold after RET
| > echo "Hello, test!" <== After my RET the line gets repeated...
| ^[]2;echo ~^GHello, test! <== After the ^G comes the output.
`----
Do you know what ^[ and ^G are for control chars and how I can get rid
of them?
If I do the same in an xterm I get
,----
| > echo "Hallo, test..."
| Hallo, test...
`----
without any coloring. So what's confusing emacs here?
Bye,
Tassilo
next prev parent reply other threads:[~2007-08-17 19:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4916.1187369678.32220.help-gnu-emacs@gnu.org>
2007-08-17 17:36 ` weird emacs shell behavior Joel J. Adamson
2007-08-17 18:19 ` Emilio Lopes
2007-08-17 18:26 ` Joel J. Adamson
2007-08-17 18:38 ` Emilio Lopes
2007-08-17 19:40 ` Joel J. Adamson
2007-08-17 19:34 ` Tassilo Horn [this message]
2007-08-17 21:09 ` Peter Dyballa
[not found] ` <mailman.4930.1187384971.32220.help-gnu-emacs@gnu.org>
2007-08-18 14:36 ` Tassilo Horn
2007-08-18 16:11 ` Peter Dyballa
[not found] ` <mailman.4951.1187453499.32220.help-gnu-emacs@gnu.org>
2007-08-18 16:30 ` Tassilo Horn
2007-08-17 16:54 phundamental unaudio
2007-08-17 17:43 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878x8aot03.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).