LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-29-2003, 11:53 AM   #1
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
less (the text viewer) configuration


How can I change default settings for less? I have SuSE 8.2 and when I press pgup / pgdn it scrools for about 60% of page instead for one full page. At first this didn't bother me much but now it's more and more annoying when I browse man pages.
 
Old 08-17-2003, 05:48 PM   #2
MacKtheHacK
Member
 
Registered: Jul 2003
Location: Boston, MA, USA
Distribution: RedHat, SuSE, Gentoo, Slackware, Mandrake ...
Posts: 111

Rep: Reputation: 15
Less is looking at your terminal settings and seeing a short screen. Run stty to see what the screen height is and change it to the right thing. If your TERM environment variable is xterm, then this should be getting updated automatically whenever you resize the window.

But to answer your question: you can put any options to less you want into the LESS environment variable, and less will set them on startup. I put the following in my $HOME/.profile:
LESS=QMies; export LESS
to get my favorite less settings.
 
  


Reply



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
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
How to find and change a specific text in a text file by using shell script Bassam Programming 1 07-18-2005 07:15 PM
A KDE text viewer that hightlights weblinks Riichard Linux - Software 1 11-11-2004 09:14 PM
Text Based PDF viewer qcoder Linux - Software 1 05-04-2004 06:18 PM
text mode ppp configuration Racso Linux - Newbie 5 01-13-2002 04:27 PM

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

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