Dump to terminal or file content of "less" pager utility

2

1

It is usual to use less utility as pager (with -r option).

But less uses special terminal buffers, so it preserve previous output to terminal and when I leave less I see previous content.

That is fine, but sometimes it is desired to append less content to terminal.

How can I configure less or what built-in command allow this?

If less doesn't allow this are there any pager capable to do this?

gavenkoa

Posted 2015-10-30T13:12:27.050

Reputation: 1 386

Answers

1

This is not possible in current less implementation. I wrote a letter to author with corresponding suggestion (see http://www.greenwoodsoftware.com/less/faq.html#mail).

Very inconvenient workaround exist: press s key and enter a file name.

gavenkoa

Posted 2015-10-30T13:12:27.050

Reputation: 1 386