6

I've been trying to clear the history of a window in Byobu but I haven't been successful. Neither reset nor clear actually clear the history, you can still see it when you enter in scrollback mode.

I'm guessing I should use tmux's clear-history command, but I don't know how to use that command from within Byobu.

2 Answers2

8

If you're using screen keybindings, then press Ctrla, then : (colon), to get a : prompt, where you can enter the clear-history command.

muru
  • 197,895
  • 55
  • 485
  • 740
  • 1
    And if not using screen keybindings, you can find the escape sequence in the byobu configuration menu (F9). For me, it was Ctrl-b instead. – Emil Styrke Jul 13 '18 at 14:21
3

From your terminal, run

byobu clear-history

For a one-liner, you can run this or save it as a bash alias:

clear && byobu clear-history
Bill
  • 31