Discussions

Ask a Question
Back to All

rebar3 on osx: Terminal.app and iTerm both broken after quitting a session with CTRL-C

Hi,
I recently switched to Mac for ongoing development and whenever I abort with Ctrl-C Ctrl-C it leaves them in a broken state. When I end with q() it seems to be fine so I am guessing in the shutdown code there is something being missed. I suspect someting like a raw mode stty setting or something like that has not been restored, the visual effect is of the CR not being carried out, only the LF part.

The following shows the end of a clean exit, followed by a dirty one and you can see the problem.

| scofblog
% ls                                                            [email protected]
LICENSE                logbook.md             rebar.lock
README.md              poke_activate_email.sh reset.sql
_build                 poke_dpost_comment.sh  src
db_create.sql          poke_get_comments.sh   test
db_testdata.sql        poke_post_comment.sh   topic1.dat
log                    rebar.config           utils.beam
±|master ✘| scofblog
% rebar3 shell                                                            [email protected]
===> Verifying dependencies...
===> Compiling scofblog
Erlang/OTP 23 [erts-11.0.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]

Eshell V11.0.3  (abort with ^G)
1> ===> The rebar3 shell is a development tool; to deploy applications in production, consider using releases (http://www.rebar3.org/docs/releases)
===> Booted epgsql
===> Booted syntax_tools
===> Booted compiler
===> Booted goldrush
===> Booted lager
===> Booted cowlib
===> Booted ranch
===> Booted cowboy
===> Booted scofblog

±|master ✘| scofblog
                 ls %                                                                    sLICENSE                logbook.md             rebar.lock
                                                        README.md              poke_activate_email.sh reset.sql
                     _build                 poke_dpost_comment.sh  src
                                                                      db_create.sql          poke_get_comments.sh   test
                              db_testdata.sql        poke_post_comment.sh   topic1.dat
                                                                                      log                    rebar.config           utils.beam
                                                    %                                     ±|master ✘| scofblog
                    %                                                                    s