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 | d38e6c5ec0bea10965b978ecc1fa9f792702c395 (patch) | |
tree | e62a17e7e97262dbfa233ac2df7a6a10a70dd1b7 /bin/man1 | |
parent | Use a temp directory in source-filter to preserve name (diff) | |
download | src-d38e6c5ec0bea10965b978ecc1fa9f792702c395.tar.gz src-d38e6c5ec0bea10965b978ecc1fa9f792702c395.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 |