LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is there a way to stop command output to continue scrolling down the terminal (https://www.linuxquestions.org/questions/linux-general-1/is-there-a-way-to-stop-command-output-to-continue-scrolling-down-the-terminal-854116/)

uriha 01-04-2011 07:23 AM

Is there a way to stop command output to continue scrolling down the terminal
 
Hi,

I moved from a Linux environment from one company to another and one annoying difference came out:

When I used to run an application in a terminal (no GUI), the transcript lines were presented one the window - when the window was full then the scrolling of the lines would continue only if one hit the space bar to proceed (of course waiting to user input did not stop the run).

In the new environment the behavior is different - transcript lines keep going on and on so I need to scroll up - and moreover each page-up command is cancelled by the new lines appearing.

perhaps this is also reproduce with other Linux commands , say "find" or "ls".

I am aware of the possibility to do cmd | more
or just look at the log file itself.

thanks

uri

tredegar 01-04-2011 07:30 AM

Pipe it through less ?
eg
Code:

cat /var/log/messages | less
Then <Spacebar>, Up/Down arrows, PgUp, PgDn
q to quit

reed9 01-04-2011 07:54 AM

There is also more, or you can use w3m as a pager as well.

uriha 01-06-2011 01:20 AM

1 Attachment(s)
thanks for the solutions!

Actually I found what I was exactly looking for, and also realized I did not describe the problem accurately:

Better description:
1. allow the transcript to scroll if no input from user.
2. using the scrollbar or page-up oo the mouse mid button to view the previous line stops the line scrolling (although the output continues behind the scene)
3. Any keyboard input will bring the last output line and line scrolling continues

Now the solution I found at last is in the window manager of xfce which I am using - have a look at the picture:
a GUI configuration menu will do the job.


hope this will help someone...

uri

honeybadger 01-06-2011 02:38 AM

Then mark the post as solved :).


All times are GMT -5. The time now is 10:17 AM.