I'm facing an strange issue, I'll add a photo since is better to explain what's happening
As you can see. After using
git log and exit (either pressing q or Q or :q or ^C), I'm not able to use more commands.
After googling a bit I came to the
stty sane command, which seems to fix my terminal. But I can't tell why or how does it fix gnome-terminal.
As far as I can see, before and after fixing it
stty -a shows the same output.
Any idea or suggestion about how to start debugging it?
I'm using gnome terminal for GNOME 3.22.2 using version 0.46.2 from VTE +GNUTLS
Thanks to the answer I took a second look to both configurations and I can see these differences
chris@Gentoo ~ $ diff stty-bad stty-good 4c4 < werase = ^W; lnext = <undef>; discard = ^O; min = 1; time = 0; --- > werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; 6c6 < -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl ixon -ixoff --- > -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff 9c9 < isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase - tostop -echoprt --- > isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
This still is a long list to check, I'll read as much as I can from those options, but that leaves the answer... how does
stty sane fix the problem and what is causing it, since
git log is not the real problem. I tried with
git --no-pager log and after a while printing commits, I press ^C and the same happens...
Ok, after switching each option the root seems to be the
-echo variable. But that leaves me just one question. Why does
git log or
^C change the default
echo variable. Where could I find the root? is it git? less (git log's pager)? or gnome-terminal? or even stty?