help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unusual Characters in Interactive Console


From: Peter Dyballa
Subject: Re: Unusual Characters in Interactive Console
Date: Tue, 2 Dec 2008 20:31:36 +0100


Am 02.12.2008 um 03:59 schrieb Colin Campbell-McPherson:

^[[0;36m2^[[0;0m
irb(main):005:0> nil
nil
^[[0;32mnil^[[0;0m


^[[0;32m and ^[[0;36m and ^[[0;0m are ANSI Escape Sequences that control particular aspects of the terminal (the first two set foreground colours, green and cyan, the latter resets to normal). In GNU Emacs' ANSI *terminal* emulation (M-x term RET) these sequences are transformed into colours.

Could be your application just needs to run some hook with: ansi- color-for-comint-mode-on. RTFM. (I'm only using shell command interpreters ...)


BTW, the characters are very usual. ^[ is a control character, and it's equal to ESC.

--
Greetings

  Pete

If it does exist, it's out of date.
                                – Arnold's Second Law of Documentation





reply via email to

[Prev in Thread] Current Thread [Next in Thread]