diff options
author | June McEnroe <june@causal.agency> | 2021-01-15 15:42:56 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-15 15:43:57 -0500 |
commit | 32a467f472aedfce2701f99abc5eca786a306083 (patch) | |
tree | 9ad7eeeb02ac54dd3c7323940e778c2df51c92df /bin/man1 | |
parent | Use a temp directory in source-filter to preserve name (diff) | |
download | src-32a467f472aedfce2701f99abc5eca786a306083.tar.gz src-32a467f472aedfce2701f99abc5eca786a306083.zip |
Automatically pipe hilex ANSI output to PAGER
Diffstat (limited to 'bin/man1')
-rw-r--r-- | bin/man1/hilex.1 | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/bin/man1/hilex.1 b/bin/man1/hilex.1 index b742b063..ace0b8cf 100644 --- a/bin/man1/hilex.1 +++ b/bin/man1/hilex.1 @@ -1,4 +1,4 @@ -.Dd January 13, 2021 +.Dd January 15, 2021 .Dt HILEX 1 .Os . @@ -64,6 +64,12 @@ input lexer if one cannot be inferred. .Bl -tag -width Ds .It Cm ansi Output ANSI terminal control sequences. +If standard output is a terminal, +output is piped to +.Ev PAGER +with +.Ev LESS=FRX +if it is not already set. . .It Cm html Output HTML @@ -181,3 +187,12 @@ Inferred for .Pa *.txt files. .El +. +.Sh ENVIRONMENT +.Bl -tag -width "PAGER" +.It Ev PAGER +The command to pipe ANSI output to +if standard output is a terminal. +The default is +.Ev PAGER=less . +.El |