fe

terminal file explorer and picker

git clone https://9o.is/git/fe.git

commit 97a58e566cab670d8a94f40ab80e85ee24771a74
parent ca3fadfcaeb9dde00f4303174da033fe21927621
Author: Jul <jul@9o.is>
Date:   Mon, 19 Jan 2026 01:26:58 -0500

move tty colors to config.h

Diffstat:
Mconfig.def.h | 10++++++++++
Mtty.h | 10----------
2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -2,6 +2,16 @@ #include "tty_interface.h" #include "actions.h" +#define TTY_COLOR_BLACK 0 +#define TTY_COLOR_RED 1 +#define TTY_COLOR_GREEN 2 +#define TTY_COLOR_YELLOW 3 +#define TTY_COLOR_BLUE 4 +#define TTY_COLOR_MAGENTA 5 +#define TTY_COLOR_CYAN 6 +#define TTY_COLOR_WHITE 7 +#define TTY_COLOR_NORMAL 9 + #define COLOR_DIRECTORY TTY_COLOR_BLUE #define COLOR_LINK TTY_COLOR_CYAN #define COLOR_SOCK TTY_COLOR_YELLOW diff --git a/tty.h b/tty.h @@ -24,16 +24,6 @@ void tty_setinvert(tty_t *tty); void tty_setnormal(tty_t *tty); void tty_title(tty_t *tty, char *title); -#define TTY_COLOR_BLACK 0 -#define TTY_COLOR_RED 1 -#define TTY_COLOR_GREEN 2 -#define TTY_COLOR_YELLOW 3 -#define TTY_COLOR_BLUE 4 -#define TTY_COLOR_MAGENTA 5 -#define TTY_COLOR_CYAN 6 -#define TTY_COLOR_WHITE 7 -#define TTY_COLOR_NORMAL 9 - /* tty_newline * Move cursor to the beginning of the next line, clearing to the end of the * current line