vi messes up the scroll back buffer

118 views
Skip to first unread message

KellyC

unread,
Aug 1, 2018, 9:31:34 AM8/1/18
to iterm2-discuss
I haven't tried to duplicate this with vi in anything other than iTerm2

Build 3.1.7 (but it has been happening for as long as I can remember)

If I have some output in a terminal window that I need to copy-n-paste to something else, I need to remember to do that before I invoke vi in the same terminal window.

This is all on my mac, not telnet/ssh to anything else.

If I invoke vi, do my edit/whatever, exit from vi, and then scroll back to try to copy-n-paste the output from the thing I ran before vi, a section of the output from that earlier command will have been overwritten by some of the vi session.




George Nachman

unread,
Aug 1, 2018, 3:06:14 PM8/1/18
to iterm2-...@googlegroups.com
To ensure the scrollback buffer is not affected by vi:

1. Turn off Prefs>Profiles>Terminal>Disable save/restore alternate screen
2. Turn off Prefs>Profiles>Terminal>Save lines to scrollback in alternate screen mode


--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages