LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   BASH SHELL “Shift + Page Up” NOT WORKING (https://www.linuxquestions.org/questions/linux-newbie-8/bash-shell-%93shift-page-up%94-not-working-667988/)

r00ster 09-06-2008 12:32 PM

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.

crabboy 09-07-2008 01:50 AM

Why not just save the output to a file, then read the file with vi or whatever editor?

Mr. C. 09-07-2008 02:21 AM

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.

r00ster 09-07-2008 02:26 PM

Quote:

Originally Posted by crabboy (Post 3272082)
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.

r00ster 09-07-2008 02:33 PM

Quote:

Originally Posted by Mr. C. (Post 3272094)
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.


All times are GMT -5. The time now is 06:33 AM.