fix colors in conf_dump
This commit is contained in:
@@ -216,6 +216,11 @@ conf_dump()
|
|||||||
c_sec = ENVIRON["_CONF_DUMP_SEC"]
|
c_sec = ENVIRON["_CONF_DUMP_SEC"]
|
||||||
c_key = ENVIRON["_CONF_DUMP_KEY"]
|
c_key = ENVIRON["_CONF_DUMP_KEY"]
|
||||||
c_rst = ENVIRON["_CONF_DUMP_RST"]
|
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
|
in_target = 0
|
||||||
current_sec = ""
|
current_sec = ""
|
||||||
hdr_printed = 0
|
hdr_printed = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user