From 135ab5847ab24b25b1ef4c58ab629f2f0b6b8d18 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 9 Nov 2024 08:55:03 +0100 Subject: common/commandline: properly clear standout escape code and set bold attribute for bold --- common/commandline.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/common/commandline.nix b/common/commandline.nix index 6025aaa..2ff6291 100644 --- a/common/commandline.nix +++ b/common/commandline.nix @@ -92,9 +92,20 @@ in { # -J: display status column at left edge of screen # -F: quit if one screen LESS = "-W -z-4 -R -J -F"; + + # Blink LESS_TERMCAP_mb = dominantEscapeCode; - LESS_TERMCAP_md = dominantEscapeCode; + + # Bold + # tput bold + LESS_TERMCAP_md = dominantEscapeCode + ""; + + # Standout start LESS_TERMCAP_so = bgDominantEscapeCode + backgroundEscapeCode; + # Standout end + # Turn off all attributes + # tput sgr0 + LESS_TERMCAP_se = ""; }; }; -- cgit v1.2.3