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?
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.
konsole, go to "Settings->Configure current Profile...->Scrolling->Fixed number of lines"
xterm can be configured with a startup-flag
-sl 777 (for 777 lines of scroll-back buffer) or via the
given that there are quite a number of terminals out there, you might want to check the manpages for the one you are using...:-)
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