Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't see what I'm typing in iterm2

Periodically, I'll run rspec (though I don't know if its specific to that) and suddenly, I can't see what i'm typing. I have to close that iterm2 window out and open a new one. Then that will work fine for a while and iterm2 will hide my typing again. I can always see responses to my commands, just not my typing or cursor. It also does this weird stacking thing where it pushes each new line farther to the right.

enter image description here

Update!:

I tried the suggestion to type in stty echo and can see my text, but the weird indention remains:

enter image description here

like image 856
fregas Avatar asked Jan 21 '15 17:01

fregas


People also ask

How do I check my iTerm2 history?

To activate the session logs, go to iTerm2 Preferences (⌘,), select the "Profiles" tab, then the "Session" tab. Under "Miscellaneous" you can specify a folder where log files for your sessions shall be saved in the future.

How do I switch between windows in an iTerm2?

Cmd+number navigates directly to a tab. Cmd+Option+Number navigates directly to a window. Cmd+Option+Arrow keys navigate among split panes. Cmd+] and Cmd+[ navigates among split panes in order of use.

How do I customize iTerm2 on Mac?

Customize with iTerm2Go to iTerm2 preferences with ⌘ + , then go into profiles > Text. Then, if you don't like the default color, and prefer something similar to the above, you can update the color scheme. There's the Solarized Dark theme which is popular, but I went Tango Dark.


2 Answers

Typing "stty sane" Fixes this for me.

like image 154
Greg Bestland Avatar answered Oct 19 '22 10:10

Greg Bestland


Clean up this and many other issues with stty sane.

Got this from a bit of Googling:

same as cread -ignbrk brkint -inlcr -igncr icrnl -iutf8 -ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke, all special characters to their default values.

Source: http://www.tutorialspoint.com/unix_commands/stty.htm

like image 45
Tek Avatar answered Oct 19 '22 10:10

Tek