Non-native fullscreen broken in 3.3.0beta2 and 3.2.8
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.3.0beta2
- OS version: 10.13.6
Detailed steps to reproduce the problem: 0. Make sure that iTerm2 wants to use non-native fullscreen mode.
- Open an iterm window.
- Type 'vim'
- Hit Cmd-R to go into non-native fullscreen.
- Type ":quit".
- Hit Cmd-R to exit fullscreen.
- Type "ls"
- Hit Cmd-R to back into fullscreen.
What happened: I am in fullscreen mode but inexplicably I see some vim stuff. See attached screenshot.
What should have happened: I should see a fullscreen terminal with a bash prompt, and above that should be the output of "ls", and above that should be a bash prompt where "ls" was typed. I could swear this is how it's always been on iTerm2. I don't know why alternate-screen stuff is now polluting non-native fullscreen. I checked with 3.2.8, and sure enough it does it there too. Strangely, step 6 is necessary for reproduction. (It doesn't have to be "ls" in particular, just something that produces several lines of output.)
Also, if I mess around with the order of those steps, sometimes the fullscreen is mangled even worse, e.g., the top will be regular scrollback, then there will be like three lines from when vim was active, then the rest will be regular scrollback. But I'm so far unable to get a concrete sequence of steps to reproduce it on demand.
If I open a fresh window, then do 'vim', then ":q", then Cmd-R to enter fullscreen, then there is no pollution from the vim session on the screen. That's how it should work when I follow 0-7 too.
I have "save lines to scrollback in alternate screen mode" set, but I'm pretty sure I've always had that set and not seen this behavior before.
Prefs: com.googlecode.iTerm2.plist