LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Terminal output is too large!! (https://www.linuxquestions.org/questions/linux-newbie-8/terminal-output-is-too-large-4175531312/)

AlexBB 01-17-2015 09:13 AM

Terminal output is too large!!
 
Problems, problems, problems... My OS is Uuntu 14.04. While running a.out file generated by g++ compiler I realized that a small portion thereof is out of the upper edge of the terminal. I can handle it by changing the source code, no problem, by reducing the output expected, but I still wonder is there is a way to increase the volume of what is printed?

Thanks, - A.

pan64 01-17-2015 11:24 AM

I do not really understand what do you mean by "increase the volume of what is printed". Do you want to change the size of the characters, or size of the terminal window or ???

veerain 01-17-2015 11:31 AM

You can use Shift-PageUp to view pages gone up.

And you can output messages to a file. Using ./a.out > out.log

Or you can use more or less command. ./a.out | less

AlexBB 01-17-2015 01:35 PM

veerain thanks. Inputting to a file will be the solution.

joe_2000 01-18-2015 07:27 AM

If you are using a terminal emulator in X you should also be able to simply scroll up with the scroll bar on the sides or the mousewheel. Most terminal emulators can be customised, so if you don't see scrollbars look in the settings to activate them. Typically you can also set the number of scrollback lines. This is the number of lines that you can scroll back before you get to the "top".

If you can't find it post which terminal emulator you are using to get more detailed instructions.

smeezekitty 01-18-2015 07:22 PM

Another option is to pipe the output into a pager like more or less

quitus 01-19-2015 09:27 AM

Quote:

Originally Posted by veerain (Post 5302449)
You can use Shift-PageUp to view pages gone up.

And you can output messages to a file. Using ./a.out > out.log

Or you can use more or less command. ./a.out | less

This is the very question I wan to ask. Oh,it is great, I never know it. Thank you very much. shift+pageup


All times are GMT -5. The time now is 03:14 AM.