[erlang-questions] user_drv cannot properly print new lines

José Valim jose.valim@REDACTED
Thu Aug 9 19:07:06 CEST 2012


Hello everyone,

If I run the following command:

$ erl -noinput -s user_drv


And then try to send any io message to the user process, the message
appears skewed:

1> io:format(user, "foo\nbar\nbaz", []).

foo
   bar
      bazok


However, sending the message to io makes it appear correctly:

2> io:format(standard_io, "foo\nbar\nbaz", []).
foo
bar
bazok


This becomes a major problem when printing error logger messages to tty,
which become completely unreadable.

I have found out this issue when starting an Elixir shell with user_drv.
The issue also appears with LFE and any other time user_drv is started
manually.

Does anyone know a fix to this problem or how I could debug it further?

*
José Valim
www.plataformatec.com.br
Founder and Lead Developer
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120809/383db761/attachment.htm>


More information about the erlang-questions mailing list