From 32a467f472aedfce2701f99abc5eca786a306083 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 15 Jan 2021 15:42:56 -0500 Subject: Automatically pipe hilex ANSI output to PAGER --- bin/man1/hilex.1 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'bin/man1/hilex.1') 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 -- cgit 1.4.1