
04-25-2007
|
 |
Registered User
|
|
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 449
|
|
Quote:
|
Originally Posted by the_learner
Its difficult to explain what I am exactly looking for, so let me try with an example..
Suppose my program prints out thousands lines. But once my program ends.. I am not able to scroll up and see all the 1000 lines. The size of the screen buffer is obviously limited. Is there anyway I can increase this size ?
|
Are you talking about a real or virtual console (e.g., such as you get on a Linux system with Ctrl-Alt-F1), or a terminal window (e.g., xterm or rxvt in X)?
If the latter, the terminal program probably has an option to set the buffer size; in xterm and rxvt, it's -sl NUM, where NUM is the number of lines you want to save. See your terminal's man page for more details.
In either a console or a terminal window, you can use typescript to save the session to a file, or you can use a pager such as [i/less[/i] or more to display the output of the command:
Or redirect the output of the command to a file:
Quote:
If there is a way, then is there any harm in increasing the size?
|
So long as you don't exceed available memory, no.
|