Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2009 21:55:05 -0400
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        Chris Stankevitz <chrisstankevitz@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: man quits back to the prompt after CTRL-G
Message-ID:  <d7195cff0910131855n7b5d6dd4w56829441810c654a@mail.gmail.com>
In-Reply-To: <521176.60565.qm@web52902.mail.re2.yahoo.com>
References:  <521176.60565.qm@web52902.mail.re2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/10/13 Chris Stankevitz <chrisstankevitz@yahoo.com>:
> Please try this:
>
> 1. at the prompt type "man man" to get the man manual page.
> 2. press CTRL-G to to to the bottom of the document
> 3. press k to scroll up one line
>
> You'll notice you cannot perform step 3 because man "quits back to the prompt after CTRL-G".
>
> Question: How can I make man not "quit back to the prompt after CTRL-G"?
>

from man 1 more:
= or ^G or :f
              Prints some information about the file being  viewed,  including
              its  name and the line number and byte offset of the bottom line
              being displayed.  If possible, it also prints the length of  the
              file,  the  number  of  lines in the file and the percent of the
              file above the last displayed line.
so if you mean shift-G, then the default behaviour of more(1) is to exit when
it reaches the end of the file, & (IIRC, obviously YMMV) the default pager is
set to more.

-- 
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7195cff0910131855n7b5d6dd4w56829441810c654a>