Bsd less: Difference between revisions

From wikinotes
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
BSD variation of less.
BSD variation of less.<br>
You may also be interested in [[gnu less]].


= Documentation =
= Documentation =
Line 9: Line 10:
|}
|}
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->
= Usage =
<blockquote>
Common Params
<syntaxhighlight lang="bash">
less \
  -X `# skip de-initialization (leave text onscreen at exit)`
  -R `# raw control chars (include colours)` \
  -S `# chop lines wider than terminal can display (scroll w/ arrowkeys)` \
  -F `# only use pager if terminal not tall enough for all text` \
  +F `# tail output, only use pager if terminal not tall enough for all text` \
  -i `# ignore case` \
  \
  --wheel-lines=5 `# number of lines scrolled each mousewheel click` \
</syntaxhighlight>
</blockquote><!-- Usage -->
= Configuration =
<blockquote>
== Colours ==
<blockquote>
less colours can be controlled via <code>$LESS_TERMCAP_*</code> environment variables.<br>
See https://unix.stackexchange.com/questions/108699/documentation-on-less-termcap-variables
</blockquote><!-- Colours -->
</blockquote><!-- Configuration -->

Latest revision as of 22:31, 10 December 2022

BSD variation of less.
You may also be interested in gnu less.

Documentation

man less https://www.freebsd.org/cgi/man.cgi?query=less

Usage

Common Params

less \
  -X `# skip de-initialization (leave text onscreen at exit)`
  -R `# raw control chars (include colours)` \
  -S `# chop lines wider than terminal can display (scroll w/ arrowkeys)` \
  -F `# only use pager if terminal not tall enough for all text` \
  +F `# tail output, only use pager if terminal not tall enough for all text` \
  -i `# ignore case` \
  \
  --wheel-lines=5 `# number of lines scrolled each mousewheel click` \

Configuration

Colours

less colours can be controlled via $LESS_TERMCAP_* environment variables.
See https://unix.stackexchange.com/questions/108699/documentation-on-less-termcap-variables