foreseen

A text-based gemini browser with prefetching.
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

commit 70484007e7fb3d0779fca1fa34cd5674b59c1bb3
parent 2829246ef3d9e02e37aae58e6d24680ff883d0c4
Author: Andrew Laack <andrew@laack.co>
Date:   Fri, 25 Sep 2026 16:35:36 -0500

Color changes

Diffstat:
MTODO.txt | 1+
Minclude/utils.hpp | 1+
Msrc/preformatted.cpp | 3++-
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/TODO.txt b/TODO.txt @@ -32,3 +32,4 @@ - add site history. - different color lines - would be nice for link lines to vary depending on if they've been visited in history +- horizontal scroll when lines are too long? diff --git a/include/utils.hpp b/include/utils.hpp @@ -6,6 +6,7 @@ #include "../vendor/uri.hpp" const int COLOR_LINK = 159; +const int COLOR_PREFORMATTED = 201; struct TextRender { int color; diff --git a/src/preformatted.cpp b/src/preformatted.cpp @@ -1,4 +1,5 @@ #include "../include/preformatted.hpp" +#include "../include/utils.hpp" #include <ncurses.h> Preformatted::Preformatted(std::string input) : text(input) {} @@ -8,7 +9,7 @@ std::string Preformatted::textToDraw() { } int Preformatted::getColor() { - return COLOR_MAGENTA; + return COLOR_PREFORMATTED; } LineType Preformatted::type() {