LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2011, 07:23 AM   #1
uriha
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
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
 
Old 01-04-2011, 07:30 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Pipe it through less ?
eg
Code:
cat /var/log/messages | less
Then <Spacebar>, Up/Down arrows, PgUp, PgDn
q to quit
 
Old 01-04-2011, 07:54 AM   #3
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
There is also more, or you can use w3m as a pager as well.
 
Old 01-06-2011, 01:20 AM   #4
uriha
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
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
Attached Thumbnails
Click image for larger version

Name:	xterm1.JPG
Views:	438
Size:	97.6 KB
ID:	5768  
 
Old 01-06-2011, 02:38 AM   #5
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Then mark the post as solved .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Stop Command Results from Scrolling Off the Screen ahr8tch Linux - Newbie 6 12-16-2009 12:32 AM
[SOLVED] append command output to file by giving command in terminal sumeet inani Linux - Newbie 4 07-03-2009 10:36 AM
How to change gnome-terminal command line from scrolling left to wrapping primorec Linux - Desktop 0 11-19-2007 02:24 AM
How to completely stop terminal output? stankelay Programming 6 08-20-2007 05:34 AM
Scrolling command line terminal FlashAsh99 Linux - Newbie 3 06-27-2005 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration