Chandan chandanlog(3C)
or sayings of an hearer
or A Blog of a Security Engineer
or The Official Online Journal of Chief Executive Prankster, Sun Microsystems Inc.,

All (Archive) | General | Solaris | Security | Art | About | |
General Solaris Security Art

« What happened to my... | Main | Ambigrams for fun... »
24 Sep 2004 The good Solaris man
.. I am referring to a man page on Linux box ... ah there is the example usage ... no thats not ... hmm.. may be I should try this ... Now I quit the man page and want to try what it said. alas! It vanished into thin air when I most wanted it!

On Solaris this is not the behavior. When you quit from a man page display, (mostly on having found a relevant example) it remains on the terminal so that I can easily refer to it. That is such a nice behavior compared to the man available on Linux.

Link | Comments [7]

Comments:

i find linux is a less usable that solaris cli wise

Posted by rob husch on September 24, 2004 at 06:29 AM PDT #

Linux documentation is poor compared to Solaris. But, the Solaris man page writers could stand to have a look at the OpenBSD man pages, which are excellent models of "how to do it".

Posted by PatrickG on September 24, 2004 at 07:03 AM PDT #

Heheh... I know this is annoying with the way man works on some distributions. I remember having been bitten by this a few times. Alas, today I cannot reproduce it on any of the distributions I tried (Fedora Core 2, Debian Sarge, Gentoo stable).

Funny. It seems the Linux folks have found out it's annoying and fixed it :-)

Posted by Giorgos Keramidas on September 24, 2004 at 10:05 AM PDT #

Chandan,

That's actually an annoying feature caused by the default pager (<code>less</code>). Clearing up the screen can be disabled by adding <code>-X</code> into its default parameters. I have following in my <code>.bashrc</code> to disable it globally:

export LESS=-Xc
Here's the explanation from man page:
 -X or --no-init
    Disables sending the termcap initialization and deinitialization
    strings  to  the  terminal.   This is sometimes desirable if the
    deinitialization string does something unnecessary, like  clear-
    ing the screen.
Another option I use is <code>-c</code> which makes scrolling a bit more smooth.

Posted by Tero on September 26, 2004 at 12:56 AM PDT #

Alternatively, look in the terminfo file for your terminal and set the definitions of ti and te to empty strings. This cures the problem once and for all.

Posted by John Cowan on October 05, 2004 at 09:50 AM PDT #

Its a matter of giving the best user experience by default. Would you buy shoes which require you sign a couple of contacts, read a 100 page operation manual, attend a 3 day training on how to wear it... It is just a simple stupid command that I may use often, and would consider it a bug if it requires me to change the configuration to use it better.

Posted by Chandan on October 05, 2004 at 10:30 PM PDT #

Do you people use bash or some neanderthal shell?

Posted by Ravi on October 14, 2004 at 06:15 AM PDT #

Post a Comment:

Comments are closed for this entry.

« What happened to my... | Main | Ambigrams for fun... »

Copyright (cc) 2004-2006 by Chandan chandanlog(3C): The good Solaris man