Increase terminal default output buffer size on CENT OS

Is it possible to increase the terminal (CENT OS) application buffer size to "infinite" scrollback via a sh script?
I can find ways of manually changing the buffer size but was wondering if there is a way to add the command to the beginning of a script.

I'm working on a laptop installation script and trying to keep the manual steps to a minimum but found out yesterday I'm loosing half my output due to the default buffer size.

I can always setup to output to a log file but wanted to check if this was possible first.

Who is Participating?
Duncan RoeConnect With a Mentor Software DeveloperCommented:
Not possible with xterm at any rate. You have to set -sl to some number (saveLines resource)
Duncan RoeSoftware DeveloperCommented:
xterm has a facility to log traffic (i.e. in both directions). -l turns logging on; -lf filename specifies log file name (by default, a generated name is used).  I don't know if terminal has those facilities (it's a cut-down xterm AIRC).
Duncan RoeSoftware DeveloperCommented:
The question author has not seen fit to comment, so we have to assume he is satisfied with the answer provided.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.