Peter Dyballa | 2 Dec 20:31

Re: Unusual Characters in Interactive Console


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

(Continue reading)


Gmane