Re: man quits back to the prompt after CTRL-G
On Tue, 13 Oct 2009 23:10:02 -0700 Chris Stankevitz wrote: > Bill Campbell wrote: > > The -e and -E options to less control this. You want neither of > > these specified if you don't want to have less automatically exit > > at end-of-file. The ``-e'' option causes it to exit the second > > time it hits eof while ``-E'' exits the first time. > > Bill, > > Thank you for your explanation. I hope to find that my PAGER > environment variable is "less -E". If so, I will drop the -E. I think it's sufficient simply to change your pager to "less". IIRC it defaults to "more". "more" and "less" are the same binary in FreeBSD, but they work slightly differently according to how they are invoked. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: man quits back to the prompt after CTRL-G
On Tue, Oct 13, 2009, Chris Stankevitz wrote: > Bill Campbell wrote: >> The -e and -E options to less control this. You want neither of >> these specified if you don't want to have less automatically exit >> at end-of-file. The ``-e'' option causes it to exit the second >> time it hits eof while ``-E'' exits the first time. > > Bill, > > Thank you for your explanation. I hope to find that my PAGER > environment variable is "less -E". If so, I will drop the -E. You probably also want the ``-r'' option which I think gets less to properly highlight the nroff things like bold. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Skype: jwccsllc (206) 855-5792 It is no crime to be ignorant of economics, which is, after all, a specialized discipline and one that most people consider to be a 'dismal science.' But it is totally irresponsible to have a loud and vociferous opinion on economic subjects while remaining in this state of ignorance. -- Murray N. Rothbard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: man quits back to the prompt after CTRL-G
send me ur citiback card no On Wed, Oct 14, 2009 at 1:40 PM, Frank Shute wrote: > On Tue, Oct 13, 2009 at 11:10:02PM -0700, Chris Stankevitz wrote: > > > > Bill Campbell wrote: > > >The -e and -E options to less control this. You want neither of > > >these specified if you don't want to have less automatically exit > > >at end-of-file. The ``-e'' option causes it to exit the second > > >time it hits eof while ``-E'' exits the first time. > > > > Bill, > > > > Thank you for your explanation. I hope to find that my PAGER > > environment variable is "less -E". If so, I will drop the -E. > > > > Chris > > > > Chris, > > Set $PAGER to "less" and then set $LESS to something reasonable in > your shells rc/profile. > > E.g On my machine: > > LESS="-Xrmj3z-3 -Pm?f%f\:\ .?pb%pb\%\ :?lt%lt. .?e(END)" > > All explained in less(1) > > Regards, > > -- > > Frank > > Contact info: http://www.shute.org.uk/misc/contact.html > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: man quits back to the prompt after CTRL-G
On Tue, Oct 13, 2009 at 11:10:02PM -0700, Chris Stankevitz wrote: > > Bill Campbell wrote: > >The -e and -E options to less control this. You want neither of > >these specified if you don't want to have less automatically exit > >at end-of-file. The ``-e'' option causes it to exit the second > >time it hits eof while ``-E'' exits the first time. > > Bill, > > Thank you for your explanation. I hope to find that my PAGER > environment variable is "less -E". If so, I will drop the -E. > > Chris > Chris, Set $PAGER to "less" and then set $LESS to something reasonable in your shells rc/profile. E.g On my machine: LESS="-Xrmj3z-3 -Pm?f%f\:\ .?pb%pb\%\ :?lt%lt. .?e(END)" All explained in less(1) Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: man quits back to the prompt after CTRL-G
Bill Campbell wrote: The -e and -E options to less control this. You want neither of these specified if you don't want to have less automatically exit at end-of-file. The ``-e'' option causes it to exit the second time it hits eof while ``-E'' exits the first time. Bill, Thank you for your explanation. I hope to find that my PAGER environment variable is "less -E". If so, I will drop the -E. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: man quits back to the prompt after CTRL-G
On Tue, Oct 13, 2009, Robert Huff wrote: > >Chris Stankevitz writes: > >> 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"? The -e and -E options to less control this. You want neither of these specified if you don't want to have less automatically exit at end-of-file. The ``-e'' option causes it to exit the second time it hits eof while ``-E'' exits the first time. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Skype: jwccsllc (206) 855-5792 Whenever a people entrust the defence of their country to a regular, standing army, composed of mercenaries, the power of that country will remain under the direction of the most wealthy citizens. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: man quits back to the prompt after CTRL-G
2009/10/13 Chris Stankevitz : > 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. -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
man quits back to the prompt after CTRL-G
Chris Stankevitz writes: > 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"? On my system, the result of (1) and (2) is the screen remains at the first page of output and lines 1-34 byte 1821 (press RETURN) appears at the bottom of the screen in reverse video. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
man quits back to the prompt after CTRL-G
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"? Thank you, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"