[erlang-questions] ANSI escape sequences in the erlang shell

David Sveningsson ext@REDACTED
Thu Apr 2 15:36:39 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Thompson wrote:
> Is there a reason the erlang shell is making my attempts to print ANSI
> escape sequences (specifically the color codes) fail? I've tried
> io:format with both \e, inlining the ctrl-esc manually (using
> ctrl-v in vim) and using \033 (the ASCII octal code for the escape).
> None of these get me color in the shell, I just see the ^[[31m or
> whatever.
> 
> It was my impression that the terminal caught those sequences and
> converted them to color codes - what is the shell doing to the control
> sequences that's preventing them from working?

It is at least working for me when I'm using -noshell and -run.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknUv2cACgkQ6pa1H/H5pqWHuwCdEPBp3jv2XTDu/Q1MR0/WPQKw
W/sAoJ85S9jwKlcBg6KEFRbE0LdmANgm
=2Mia
-----END PGP SIGNATURE-----



More information about the erlang-questions mailing list