Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|improve this question

migrated from stackoverflow.com Jul 29 '10 at 3:27

This question came from our site for professional and enthusiast programmers.

1  
I'm not confident this has anything to do with programming. –  Gian Jul 25 '10 at 21:42
2  
Screen has cut and paste? I just use the copy/paste features of my terminal program. –  Greg Hewgill Jul 25 '10 at 21:44
1  
if you ask one single specific question you might get an answer. this is all over the map, and any one of these might take a long time to give a good answer to. –  iconoclast Jun 7 '11 at 2:54
1  
@GregHewgill Read this question and its answers for more about scrolling, copying & pasting in screen –  Doug Harris Jan 12 '12 at 18:23
1  
@DougHarris: Also see stackoverflow.com/questions/70614/gnu-screen-survival-guide/… for the commands that I actually use in screen. Turns out I use the "copy" feature for scrollback, but not copying. –  Greg Hewgill Jan 12 '12 at 18:27

3 Answers 3

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
share|improve this answer

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.