I want to "clear" the tmux pane completely. When I do something like
bind-key C send-keys "clear && tmux clear-history" \; send-keys "Enter"
suggested in https://stackoverflow.com/questions/10543684/how-can-i-clear-scrollback-buffer-in-tmux, I am able to clear the scrollback buffer and get a clean screen.
However when I do Shift+PageUp and Shift+PageDown I am able to see the previous output from the terminal emulator itself (not tmux). Normally you can do reset
command to clear the scrollback history of the terminal emulator.
Is it possible to reset
the Terminal Emulator from tmux? Along with the above scrollback clear?
Couple of workaround suggested are:
1) To keep Urxvt.saveLines: 0
or start Urxvt -sl 0
- This is logical since you don't need Terminal Emulator's scrollback if you are in tmux.
2) Detach, reset and re-attach tmux - This seems cumbersome.