From 2365f48f06a05e8c9ffbb2430ee994c0b43ea82a Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 9 Dec 2022 19:53:53 +0100 Subject: mcolor: print out form-feed --- mcolor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcolor b/mcolor index d3a402a..ba2c42c 100755 --- a/mcolor +++ b/mcolor @@ -7,7 +7,7 @@ function so(s) { return sprintf("\033[1m%s\033[0m", s) } BEGIN { hdr = 1; if ("NO_COLOR" in ENVIRON || match(ENVIRON["TERM"], "^(dumb|network|9term)")) no_color = 1 } no_color { print; next } /\r$/ { sub(/\r$/, "") } -/^\014$/ { nextmail = 1; next } +/^\014$/ { nextmail = 1; print(fg(co("FF",232), $0)); next } /^$/ { hdr = 0 } /^-- $/ { ftr = 1 } /^--- .* ---/ { print fg(co("SEP",242), $0); ftr = 0; sig = 0; next } -- cgit 1.4.1