5

I've been using GNU Screen for close to 3 years and find it immensely useful. For such a robust and flexible program I find its cut and paste functionality a little basic.

Has anyone found a better way to use the cut and paste features besides the default settings? These include:

  • Better cut/paste and hardstatus integration
  • More recall than only the previously cut text
  • Easier keybindings
Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311

3 Answers3

1

I've changed my /etc/screenrc for setting I prefer.

Here are the lines related to the hardstatus.

hardstatus on
backtick 1 3600 1 /bin/uname -n
hardstatus alwayslastline "%{= dg} %-Lw%{+b}%n+%f %t%{-}%+Lw%< %=[%1` %l] [%0c]"

I still use the default keybindings, but these can also be changed in the configuration file. The main resource are man screen (for shortcuts and the configuration file) and the web for the examples.

Some mnemonics for default shortcuts:

  • c-a c-c create
  • c-a c-n next
  • c-a c-p previous
  • c-a c-d detach
  • c-a x where x is [0-9] goes to the screen x
  • c-a [ copy
  • c-a ] paste
Kru
  • 198
  • 1
  • 1
  • 8
0

I've simply avoided it or dug out the manual if I had to use it. I don't think tmux fares any better when it comes to c&p either.

XTL
  • 199
0

Both recall and keybindings can be changed in your .screenrc, which should be found in your home folder (~), if you don't have one you should be able to copy one from /etc/skel