Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The output of my program being too long, on running it in screen terminal some part of output gets truncated.
To avoid this how can I increase log limit of screen terminal?
Any ideas??

share|improve this question

migrated from Jul 31 '12 at 17:42

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

Maybe try redirecting output to a file? Such as ./myprog < out.txt – squiguy Jul 31 '12 at 13:18
@squiguy - Did you mean: ./myprog > out.txt instead? – ArjunShankar Jul 31 '12 at 13:35
Yes, essentially just redirecting the output! I got mixed up unfortunately. – squiguy Jul 31 '12 at 13:41

this depends on the terminal you are actually using.

e.g. for the xfce4-terminal, go to "Edit->Settings->General->Scrollback" and change the scroll-buffer to your likings.

for kde's konsole, go to "Settings->Configure current Profile...->Scrolling->Fixed number of lines"

the classical xterm can be configured with a startup-flag -sl 777 (for 777 lines of scroll-back buffer) or via the saveLines config.

given that there are quite a number of terminals out there, you might want to check the manpages for the one you are using...:-)

share|improve this answer

To increase the scrollback buffer for GNU screen (I assume this is what you are using from your question), start it with screen -h <buffer_size>. Unfortunately, it appears the scrollback buffer cannot be resized after startup.

To set a new default scrollback buffer in GNU screen, add defscrollback <num_lines> to your ~/.screenrc file.

share|improve this answer

When you are already using a screen session, hit Ctrl+A, then type :scrollback #, where # is the number of scrollback lines you would like.

At startup, you can use the -h argument as recommended above.

share|improve this answer

Your Answer


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