From: Sponge5 <Sponge5@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Added a COLORS section to mblaze man page
Date: Fri, 25 Oct 2024 22:46:17 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-267@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
There is a new pull request by Sponge5 against master on the mblaze repository
https://github.com/Sponge5/mblaze adam/colors-man-section
https://github.com/leahneukirchen/mblaze/pull/267
Added a COLORS section to mblaze man page
None
A patch file from https://github.com/leahneukirchen/mblaze/pull/267.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-adam/colors-man-section-267.patch --]
[-- Type: text/x-diff, Size: 1251 bytes --]
From 753fa34c73fca356926d66f1f31aad10a7fe6198 Mon Sep 17 00:00:00 2001
From: Adam Procio <adam.procio@gmail.com>
Date: Fri, 25 Oct 2024 22:35:09 +0200
Subject: [PATCH] ugly, I know
---
man/mblaze.7 | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/man/mblaze.7 b/man/mblaze.7
index da2aebf4..c6176134 100644
--- a/man/mblaze.7
+++ b/man/mblaze.7
@@ -197,6 +197,30 @@ For scripting, you must make these arguments explicit.
.Pp
For configuration, see
.Xr mblaze-profile 5 .
+.Sh COLORS
+.Nm
+color output of
+.Xr mshow 1
+and
+.Xr mscan 1
+can be configured via environment variables starting with MCOLOR_. For example:
+.Dl export MCOLOR_FROM=226
+.Pp
+will turn the color of From= header line to bright yellow.
+.Pp
+All programmable colors:
+.Dl MCOLOR_CUR - current mail in mless
+.Dl MCOLOR_DIFF_D - diff deleted lines
+.Dl MCOLOR_DIFF_I - diff inserted lines
+.Dl MCOLOR_DIFF_R - diff line range
+.Dl MCOLOR_FOOTER - footer
+.Dl MCOLOR_FROM - from header line
+.Dl MCOLOR_HEADER - rest of header
+.Dl MCOLOR_QQQUOTE - triple-nested quote
+.Dl MCOLOR_QQUOTE - double-nested quote
+.Dl MCOLOR_QUOTE - quote
+.Dl MCOLOR_SEP - separator
+.Dl MCOLOR_SIG - signature
.Sh SEE ALSO
.Xr mailx 1 ,
.Xr mblaze-profile 5 ,
next reply other threads:[~2024-10-25 20:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 20:46 Sponge5 [this message]
2024-10-25 20:46 ` Sponge5
2024-10-26 15:07 ` [PR PATCH] [Closed]: " leahneukirchen
2024-10-26 15:08 ` leahneukirchen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-267@inbox.vuxu.org \
--to=sponge5@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).