<div dir="ltr">I think this might be a bug that was introduced in 17.0, that has been fixed in 17.4. See OTP-12275 in the erts release notes.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 27, 2014 at 5:12 PM, Karolis Petrauskas <span dir="ltr"><<a href="mailto:k.petrauskas@gmail.com" target="_blank">k.petrauskas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have the same problem and I have no solution for it. I think it is<br>
related to the terminal specified when starting the node (not when<br>
attaching to it).<br>
<br>
The only workaround I found was to type commands in a text editor and<br>
copy/paste them to the terminal.<br>
<span class="HOEnZb"><font color="#888888"><br>
Karolis<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Dec 23, 2014 at 5:00 PM, Camille Troillard <<a href="mailto:lists@tuli.pe">lists@tuli.pe</a>> wrote:<br>
> Hello,<br>
><br>
> We are experiencing an annoying problem in integration or production environment that deals with incorrect line wrapping when connecting to a remote shell.<br>
><br>
> Erlang version:<br>
> Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]<br>
><br>
> Installed on FreeBSD using the `erlang-17.3_3,3` package.<br>
><br>
><br>
> We generate a release using rebar. When we want to interact with it, we attach to the system like so (assuming the release is named “abc”) :<br>
><br>
> $ ./rel/abc/bin/abc attach<br>
><br>
> (<a href="mailto:abc@127.0.0.1">abc@127.0.0.1</a>)1><br>
><br>
><br>
> In this situation, whenever you write something that exceeds the width of the terminal (typically 80 columns), the line wraps onto a second line, which is OK. But if you have an open parenthesis on the first line, that is closed on the second line, then the output becomes garbled, text overwritten and it is no longer possible to sanely use the shell.<br>
><br>
> This is an example of expected output:<br>
><br>
> (<a href="mailto:abc@127.0.0.1">abc@127.0.0.1</a>)1> this_is_an_example_of_a_long_module_name:call_this_function([1<br>
> , 2, 3, 4], another_arg).<br>
><br>
> And the actual output (the cursor is on the first line at column 2):<br>
><br>
> .abc@127.0.0, another_arg)an_example_of_a_long_module_name:call_this_function([1<br>
> , 2, 3, 4]<br>
><br>
><br>
> Text garbling occurs as soon as I hit the first ‘]’. It also occurs on ‘)’.<br>
><br>
> It does not happen when typing into an erlang shell that was launched using `erl` directly.<br>
><br>
> It seems to happen to_erl. The same erratic behaviour is seen when attach to a release running on FreeBSD or OS X. It does not matter whether the console is running locally or via SSH. Also, it does not seem to matter wether the TERM variable is set to ansi, vt100, xterm or xterm-256color.<br>
><br>
><br>
> I would like to know if someone noticed this problem, and how to fix it.<br>
><br>
> Thanks !<br>
> Camille<br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>