cgmnlm

colorful gemini line mode browser
git clone https://git.clttr.info/cgmnlm.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 1798cac710b18d0f05cfb69b93e7c80fc73b3eef
parent 872c98e12b39e85b20ea96f1ded794fcc0204164
Author: René Wagner <rwa@clttr.info>
Date:   Sat, 30 Oct 2021 11:15:07 +0200

use light magenta for alien-protocol links

Diffstat:
Msrc/gmnlm.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -28,6 +28,7 @@ #define ANSI_COLOR_YELLOW "\x1b[93m" #define ANSI_COLOR_BLUE "\x1b[94m" #define ANSI_COLOR_MAGENTA "\x1b[35m" +#define ANSI_COLOR_LMAGENTA "\x1b[95m" #define ANSI_COLOR_CYAN "\x1b[36m" #define ANSI_COLOR_LCYAN "\x1b[96m" #define ANSI_COLOR_GRAY "\x1b[37m" @@ -979,7 +980,7 @@ repeat: break; case GEMINI_LINK: if (text == NULL) { - col += fprintf(out, "%3d) %s", nlinks++, (!strncmp("gemini://", tok.link.url, 9)) ? ANSI_COLOR_CYAN : ((strstr(tok.link.url, "://") == NULL) ? ANSI_COLOR_LCYAN : ANSI_COLOR_MAGENTA)); + col += fprintf(out, "%3d) %s", nlinks++, (!strncmp("gemini://", tok.link.url, 9)) ? ANSI_COLOR_CYAN : ((strstr(tok.link.url, "://") == NULL) ? ANSI_COLOR_LCYAN : ANSI_COLOR_LMAGENTA)); 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));