diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-12-09 19:53:53 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-12-09 19:53:53 +0100 |
commit | 2365f48f06a05e8c9ffbb2430ee994c0b43ea82a (patch) | |
tree | 35fb68713eb39191c1248ef91ace186c80449287 /mcolor | |
parent | 74e77845c3fb259a73e598ac2176cc1b88133401 (diff) | |
download | mblaze-2365f48f06a05e8c9ffbb2430ee994c0b43ea82a.tar.gz mblaze-2365f48f06a05e8c9ffbb2430ee994c0b43ea82a.tar.xz mblaze-2365f48f06a05e8c9ffbb2430ee994c0b43ea82a.zip |
mcolor: print out form-feed
Diffstat (limited to 'mcolor')
-rwxr-xr-x | mcolor | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |