I have a script that performs git operations like checkout, fetch, pull and mvn clean install in several repos. If I press CTRL-C when script executes git operations it stops. But after that I can't see characters I'm typing in that terminal. If I press enter I see that terminal executes typed command and see output but can't see characters I put into the terminal. It is reproduced all the time in MC, but everything is OK in plain termminal. Does anybody know what is the reason of such behaviour?
Asked
Active
Viewed 61 times
0
-
Does it matter where in the `git` operations you ctrl-c out? – Etan Reisner Oct 14 '15 at 19:35
-
1Would `stty sane` after the break help you? – user3159253 Oct 14 '15 at 20:33
-
Yes, it helps. Thank you! Can you put it as the answer and explain a bit what is the reason of such behavior and why `stty sane` fix it. – gaal Oct 16 '15 at 11:08
1 Answers
0
Thanks to user3159253 for solution!
Executing stty sane
in such terminal fix the situation.
It would be helpful if someone explains why input characters are invisible in terminal in such situation.

gaal
- 148
- 1
- 5