dmacks
05-02-2005, 02:46 PM
Hi,
Now, after upgrading to Tiger, when I reach the end of a Man page and the prompt turns to "END", I don't seem to be able to exit back to the normal prompt like I used to (space bar).Maybe 'q'?
hayne
05-02-2005, 03:47 PM
Man pages use the 'less' paging program (see 'man less').
I don't know why this has changed in going to Tiger, but if you use the "-e" option when invoking 'less', it will quit as usual via a spacebar press at the end of file.
Of course, when you use 'man', it invokes 'less' internally, so you need to set the "LESS" environment variable to make it use the "-e" option.
I also want to set the "-X" option so that the text of the man page stays visible after you quit 'man', so I have the following line in my ~/.profile
LESS="-X -e"; export LESS
Raven
05-03-2005, 10:26 AM
Thanks for the tip Haynes... Its nice to be able to keep the man page once you've gone out of it... Although, I personnaly do like the Q idea... cause I tend to tab the space bar over too many times ! But thats probably just the not so unix side of me at work ! :D
Edit:
Hum... just checked and there is no .profile file in my home directory... Should I simply create it ? If so Do I simply open pico, type in what I want and name the file .profile ?
hayne
05-03-2005, 01:39 PM
there is no .profile file in my home directory... Should I simply create it ? If so Do I simply open pico, type in what I want and name the file .profile ?
Yes - exactly right.
It won't be read until you start a new Terminal window.