Gnu less: Difference between revisions
From wikinotes
(→Usage) |
|||
Line 30: | Line 30: | ||
-X `# skip de-initialization (leave text onscreen at exit)` | -X `# skip de-initialization (leave text onscreen at exit)` | ||
-R `# raw control chars (include colours)` \ | -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 `# only use pager if terminal not tall enough for all text` \ | ||
-i `# ignore case` \ | -i `# ignore case` \ |
Revision as of 14:50, 3 April 2022
A pager for unix systems.
Documentation
man less
https://man.archlinux.org/man/less.1 man lesskey
https://man.archlinux.org/man/core/less/lesskey.1.en github https://github.com/gwsw/less
Locations
${XDG_CONFIG_HOME}/.lesskey
custom keybindings
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` \ -i `# ignore case` \
Configuration
Environment
LESS="XRF" # default less params -X, -R, -FColours
less colours can be controlled via
$LESS_TERMCAP_*
environment variables.
See https://unix.stackexchange.com/questions/108699/documentation-on-less-termcap-variables