0

I often want to copy (yank) text in copy-mode-vi, while the terminal is outputting text.

However, it seems impossible to reliably mark the text, while the terminal is not still (i.e., it outputs text to the terminal, making the terminal content change).

Is there any way to "freeze" the terminal, so that I can mark and copy (yank) terminal output, while the terminal is outputting text?

9
  • CTRL+s should temporarily suspend output. CTRL+q to resume – Panki Sep 23 '20 at 7:21
  • @Panki - will you elaborate? Are those Tmux, Bash (Readline), or Terminal commands? – Shuzheng Sep 23 '20 at 8:10
  • What terminal are you using? Also, besides XON/XOFF, consider scroll-lock. – Quasímodo Sep 23 '20 at 12:21
  • @Quasímodo - what is the effect of scroll-lock? I'm using gnome-terminal and Terminal.app – Shuzheng Sep 24 '20 at 6:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.