LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2008, 11:32 AM   #1
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
BASH SHELL “Shift + Page Up” NOT WORKING


BASH SHELL “Shift + Page Up” NOT WORKING

Debian GNU 2.6.18-5-686
KDE 3.5.5

Considering my lack of technical background, I probably shouldn't even be running Etch, but here I am and there you go.

I've been unable to figure out how to scroll back to the beginning (i.e., to where I
entered the actual command) when I pull/fetch web pages' html that exceeds some
limit or other. I've tried “Shift Page Up”, variations using the Up Arrows, but no joy.
I've also tried a couple of combinations using “less” and “more”, but I haven't got
the hang of it; or something.

It's probably more info than is necessary, but the case in point involves viewing
the html of a piece of spam to scan for malware, using "curl -i"; to whit <http://ker.qvmore.cn>

I'd appreciate some gnubie-level help.
 
Old 09-07-2008, 12:50 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Why not just save the output to a file, then read the file with vi or whatever editor?
 
Old 09-07-2008, 01:21 AM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Scrollback is a function of the termninal emulator, not bash. You must configure your terminal emulator to preserve more scrollback lines if you need them.

What problems are you having using less?

You can use

Code:
curl ... 2>&1 | less
to send the output to less, allowing you to scroll anywhere in the output.
 
Old 09-07-2008, 01:26 PM   #4
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by crabboy View Post
Why not just save the output to a file, then read the file with vi or whatever editor?
For my purposes, this would take more steps/time than I would
like. I was looking for something more 'direct-to-task'.

But I appreciate the tip and shall undoubtedly use it by 'n bye.
 
Old 09-07-2008, 01:33 PM   #5
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
Scrollback is a function of the termninal emulator, not bash. You must configure your terminal emulator to preserve more scrollback lines if you need them.

What problems are you having using less?

You can use

Code:
curl ... 2>&1 | less
to send the output to less, allowing you to scroll anywhere in the output.
Thanks Mr. C;

I got a bit confused reading the man on "less". I was inserting
it between the command (curl -i) and the url I wanted to fetch.

Your Rx worked fine. So I think I'll leave any adjustments to the terminal emulator for a later project.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Bash Screen Scrollback Length? (Shift + Page Up) juanbobo Linux - Software 1 06-14-2006 10:01 AM
Scrolling with Shift + Page Up in Bash Ragsdale45 Linux - Newbie 7 07-14-2005 03:45 PM
Lowercase 'b' not working in bash shell BWebb Linux - Software 1 05-17-2005 04:24 PM
Bash Shell Startup Files - Not working! Carl-Fredrik Linux From Scratch 1 10-20-2004 03:52 PM
bash shell not working? magyartoth Linux - General 4 04-09-2002 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 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