From 83fa6a0ff62289c9f420a435d4457042f7c420c6 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 2 Aug 2020 16:18:35 +0530 Subject: Support xterm 256 color --- nnn.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nnn.1') diff --git a/nnn.1 b/nnn.1 index df7e02d..f000eda 100644 --- a/nnn.1 +++ b/nnn.1 @@ -408,9 +408,18 @@ separated by \fI;\fR: .Pp \fBNNN_COLORS:\fR string of color codes for each context, e.g.: .Bd -literal + # 8 color codes + # codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white export NNN_COLORS='1234' - codes: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white + # xterm 256 color codes (in hex) + # codes: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg + export NNN_COLORS='#0a1b2c3d' + + # both (256 followed by 8 as fallback, separated by ';') + export NNN_COLORS='#0a1b2c3d;1234' + + NOTE: If only 256 colors are specified and the terminal doesn't support, default (4-blue) is used. .Ed .Pp \fBNNN_ARCHIVE:\fR archive types to be handled silently (default: bzip2, (g)zip, tar). -- cgit v1.2.3-70-g09d2