diff --git a/README.md b/README.md
index 9e1c9831127d8395d3fa8173f4ecb775c27e31b1..ea1f81f04aac1b93f73fca7d984b6e3f02415a2b 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,16 @@ It includes the following modifications:
+The actual colors used depend on your terminal palette:
+- heading 1: light red
+- heading 2: light yellow
+- heading 3: light green
+- gemini link: light cyan
+- non-gemini link: light magenta
+- quote: light gray
+Besides this rendering adjustments i'll try to keep track of upstream changes or send patches to upstream.
diff --git a/src/cgmnlm.c b/src/cgmnlm.c
index 38ac821cff06602aba88c5e1c414aeccf3eb1e1f..6f0b8773c16001ab95edaec345879874483114a9 100644
--- a/src/cgmnlm.c
+++ b/src/cgmnlm.c
@@ -19,12 +19,13 @@ #include <gmni/tofu.h>
#include <gmni/url.h>
#include "util.h"
-#define ANSI_COLOR_RED "\x1b[31m"
-#define ANSI_COLOR_GREEN "\x1b[32m"
-#define ANSI_COLOR_YELLOW "\x1b[33m"
-#define ANSI_COLOR_BLUE "\x1b[34m"
-#define ANSI_COLOR_MAGENTA "\x1b[35m"
-#define ANSI_COLOR_CYAN "\x1b[36m"
+#define ANSI_COLOR_RED "\x1b[91m"
+#define ANSI_COLOR_GREEN "\x1b[92m"
+#define ANSI_COLOR_YELLOW "\x1b[93m"
+#define ANSI_COLOR_BLUE "\x1b[94m"
+#define ANSI_COLOR_MAGENTA "\x1b[95m"
+#define ANSI_COLOR_CYAN "\x1b[96m"
+#define ANSI_COLOR_GRAY "\x1b[37m"
#define ANSI_COLOR_RESET "\x1b[0m"
struct link {
@@ -791,7 +792,7 @@ }
break;
case GEMINI_LINK:
if (text == NULL) {
col += fprintf(out, "%2d) %s", nlinks++, (!strncmp("gemini://", tok.link.url, 9) || strstr(tok.link.url, "://") == NULL) ? ANSI_COLOR_CYAN : ANSI_COLOR_MAGENTA );
col += fprintf(out, "%2d) %s", nlinks++, (!strncmp("gemini://", tok.link.url, 9) || strstr(tok.link.url, "://") == NULL) ? ANSI_COLOR_CYAN : ANSI_COLOR_MAGENTA);
text = trim_ws(tok.link.text ? tok.link.text : tok.link.url);
*next = calloc(1, sizeof(struct link));
(*next)->url = strdup(trim_ws(tok.link.url));
@@ -842,8 +843,8 @@ col += fprintf(out, " ");
}
break;
case GEMINI_QUOTE:
col += fprintf(out, " %s ",
browser->unicode ? "┃" : ">");
col += fprintf(out, " %s%s %s", ANSI_COLOR_RESET,
browser->unicode ? "┃" : ">", ANSI_COLOR_GRAY);
if (text == NULL) {
text = trim_ws(tok.quote_text);
}
text/gemini
This content has been proxied by September (ba2dc).