From adc3410395771609d2db5ee5ae2b9da71115c5ca Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 11:05:13 +0200 Subject: krino: coloured output, and --no-color One palette type styles the plan table, warnings, headers, outcome counts, prompt keys, undo's refused steps and krino log's (undone), from the 16-colour ANSI palette plus bold and faint only. Widths are measured on the plain text, so columns line up; with colour off the output is unchanged. --no-color works before or after any subcommand, as NO_COLOR does. The two search-and-replace colourings are gone. --- man/krino.1 | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'man') diff --git a/man/krino.1 b/man/krino.1 index 627a2ee..9e2d274 100644 --- a/man/krino.1 +++ b/man/krino.1 @@ -101,6 +101,28 @@ Use .Ar file in place of .Pa $XDG_CONFIG_HOME/krino/krino.conf . +.It Fl -no-color +Never colour the output, as when +.Ev NO_COLOR +is set. +Without it, +.Nm +colours its output only when writing to a terminal, using the terminal's +own 16-colour palette: directory headers bold; +.Ic copy , +.Ic move +and +.Ic rename +green; +.Ic trash +yellow; +.Sy DELETE permanently +and a refused undo step bold red; skipped steps and match reasons faint; +rule names blue; warnings yellow; the applied count green and a failed count +red; prompt keys bold; and +.Ic krino log Ns 's +.Dq (undone) +faint. .It Fl h , Fl -help Print usage and exit. .It Fl -version @@ -278,10 +300,9 @@ Never used for .Fl -json output. .It Ev NO_COLOR -When set, disables the ANSI colour -.Nm -otherwise uses on a terminal for a permanent delete and a refused undo -step. +When set, disables colour, as +.Fl -no-color +does. .El .Sh FILES .Bl -tag -width Ds -- cgit v1.3