[erlang-questions] terminal codes
Henning Diedrich
hd2010@REDACTED
Sat May 1 19:28:59 CEST 2010
Yes! Thanks.
Is there a way to persuade the Erlang shell to let terminal color codes
through?
Thanks,
Henning
黃耀賢 (Yau-Hsien Huang) wrote:
> I made a Erlang script and got output that seems correct.
>
> #!/usr/bin/env escript
> -compile(export_all).
> main([]) ->
> io:format("\e[1;36mabc\e[0;37m").
>
> I checked it by pasting what printed into a telnet BBS and viewing it
> effect. It works.
> So the problem may shift to how to make Erlang shell support terminal color
> codes.
>
> On Sat, May 1, 2010 at 9:30 PM, Henning Diedrich <hd2010@REDACTED>wrote:
>
>
>> Can I print terminal color codes out of Erlang?
>>
>> E.g. \e[30m?
>>
>> The io: functions seem to force control codes to be printable.
>>
>> Thanks!
>> Henning
>>
>>
>>
>
>
More information about the erlang-questions
mailing list