diff --git a/profile.d/conf.sh b/profile.d/conf.sh index 1cf7691..f6c628f 100755 --- a/profile.d/conf.sh +++ b/profile.d/conf.sh @@ -216,6 +216,11 @@ conf_dump() c_sec = ENVIRON["_CONF_DUMP_SEC"] c_key = ENVIRON["_CONF_DUMP_KEY"] c_rst = ENVIRON["_CONF_DUMP_RST"] + # Shell colour vars contain literal \e[…m strings; convert to + # the actual ESC byte so awk print emits real ANSI sequences. + gsub(/\\e/, "\033", c_sec) + gsub(/\\e/, "\033", c_key) + gsub(/\\e/, "\033", c_rst) in_target = 0 current_sec = "" hdr_printed = 0