man - please wait!

Jim Jagielski jim at jagubox.gsfc.nasa.gov
Thu Nov 15 06:31:49 AEST 1990


Is anyone else upset with the way man works with multi-listing man pages?

For example, "man mount" gives you the printing for all listings of "mount",
but it always scrolls/clear the last page of a section before you have a
chance to read it and then starts up with the 1st page of the next listing.

For example, assume that mount has 3 listings: the 1st has 5 pages, the 2nd
2 and the 3rd 4. When "man mount" is done, it'll show pages 1-4 (pausing
at each screenfull), but then it show page 5, then immediately clear and show
page 1 of listing 2.

This is because more always exits at EOF, instead of waiting for you to
tell it to exit (ala less and pg). Hence, when the last page is shown, more
exits as soon as it "types" it, the eval in man (/usr/bin/man is a shell
script) exits and then the next listing is piped to more which immdiately
clears the screen and shows the next listing.

Changing the filter used by man (either by PAGER or editing /usr/bin/man) is
no help because:

	1) less can't handle the "escape sequences" for bold, etc.

	2) pg don't work right with "man -Tlp stuff | lpr"... you
	   get the stupid escape sequences written out on the hardcopy.
	   I guess pg don't look at -T
--
=======================================================================
#include <std/disclaimer.h>
                                 =:^)
           Jim Jagielski                    NASA/GSFC, Code 711.1
     jim at jagubox.gsfc.nasa.gov               Greenbelt, MD 20771

"Kilimanjaro is a pretty tricky climb. Most of it's up, until you reach
 the very, very top, and then it tends to slope away rather sharply."



More information about the Comp.unix.aux mailing list