[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] rcfile: introduce the modifier 'italic', for slanted text
From: |
Benno Schulenberg |
Subject: |
[PATCH] rcfile: introduce the modifier 'italic', for slanted text |
Date: |
Tue, 16 Jun 2020 11:16:56 +0200 |
The modifier has to come before the foreground color name, separated
by a comma, and after 'bold,' (when present). This has no effect on
terminals that are incapable of cursive text, like the Linux console.
This fulfills https://savannah.gnu.org/bugs/?56525.
---
src/rcfile.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/rcfile.c b/src/rcfile.c
index 73aac5a9..3b826f08 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -1054,6 +1054,16 @@ bool parse_combination(char *combostr, short *fg, short
*bg, int *attributes)
comma = strchr(combostr, ',');
}
+ if (strncmp(combostr, "italic", 6) == 0) {
+ *attributes |= A_ITALIC;
+ if (combostr[6] != ',') {
+ jot_error(N_("An attribute requires a subsequent
comma"));
+ return FALSE;
+ }
+ combostr += 7;
+ comma = strchr(combostr, ',');
+ }
+
if (comma != NULL) {
*bg = color_to_short(comma + 1, &vivid, &thick);
if (*bg == BAD_COLOR)
--
2.25.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] rcfile: introduce the modifier 'italic', for slanted text,
Benno Schulenberg <=