Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>Can't exit Man pages in Tiger

Can't exit Man pages in Tiger

treck
05-02-2005, 02:31 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). Anyone have any ideas?

Thanks,
treck

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.


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

Terminal Keybindings
configure: error: C compiler cannot create executables
gtk2 build fails
bash not using my .bashrc file ????
Darwin 8.0 and Mac OS X 10.3.9
small backups on a USB stick?
Fink and/or DarwinPorts?

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics