all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unusual Characters in Interactive Console
@ 2008-12-02  2:59 Colin Campbell-McPherson
  2008-12-02 19:31 ` Peter Dyballa
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Campbell-McPherson @ 2008-12-02  2:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,

I'm trying to use irb, the interactive ruby console within emacs. When  
I execute a command the output is not rendering correctly.
I'm on OS X Leopard and have tried running emacs in Terminal, iTerm  
and Aquamacs, all with the same results. I haven't found much on the  
net aside from suggestions to change font, which hasn't worked for me.

Example:

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

should be:

------------------------------
 >> 1+1
=> 2
 >> nil
=> nil
------------------------------

Any help would be much appreciated.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unusual Characters in Interactive Console
       [not found] <mailman.1701.1228229612.26697.help-gnu-emacs@gnu.org>
@ 2008-12-02 15:01 ` Andreas Politz
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Politz @ 2008-12-02 15:01 UTC (permalink / raw)
  To: help-gnu-emacs

Colin Campbell-McPherson wrote:
> Hi there,
> 
> I'm trying to use irb, the interactive ruby console within emacs. When I 
> execute a command the output is not rendering correctly.
> I'm on OS X Leopard and have tried running emacs in Terminal, iTerm and 
> Aquamacs, all with the same results. I haven't found much on the net 
> aside from suggestions to change font, which hasn't worked for me.
> 
> Example:
> 
> ------------------------------
> irb(main):004:0> 1+1
> 1+1
> ^[[0;36m2^[[0;0m
> irb(main):005:0> nil
> nil
> ^[[0;32mnil^[[0;0m
> ------------------------------
> 
> should be:
> 
> ------------------------------
>  >> 1+1
> => 2
>  >> nil
> => nil
> ------------------------------
> 
> Any help would be much appreciated.
> 
> 
> 
> 

Try `ansi-color-for-comint-mode-on'.

-ap


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unusual Characters in Interactive Console
  2008-12-02  2:59 Colin Campbell-McPherson
@ 2008-12-02 19:31 ` Peter Dyballa
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2008-12-02 19:31 UTC (permalink / raw)
  To: Colin Campbell-McPherson; +Cc: help-gnu-emacs


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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-02 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1701.1228229612.26697.help-gnu-emacs@gnu.org>
2008-12-02 15:01 ` Unusual Characters in Interactive Console Andreas Politz
2008-12-02  2:59 Colin Campbell-McPherson
2008-12-02 19:31 ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.