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.

When scrolling up through the history of screen session with ctrl+a ESC (the output in terminal), it only goes back a small number of lines.

How do I configure screen to keep (much) longer history? I'd like to configure this globally and permanently, not per session.

share|improve this question
    
This is going to depend on your window manager. Are you using Gnome? KDE? –  Scott Wilson Mar 29 '12 at 13:22
    
@ScottWilson can you elaborate about the relation with the other window managers? –  amotzg Mar 29 '12 at 13:44
add comment

1 Answer

up vote 2 down vote accepted

You can add

defscrollback <numberOfLines> 

to your $HOME/.screenrc file or to the more global /etc/screenrc

See the CUSTOMIZATION section of the screen manual page for more details about using this command, those files, and the files precedence.

Ubuntu screen's man page: http://manpages.ubuntu.com/manpages/precise/en/man1/screen.1.html

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.