fe
terminal file explorer and picker
git clone https://9o.is/git/fe.git
commit ce6744ef97d9e20db66397671d3ebf64ae6a7162 parent bf204e6751b7ab7abafe7383f0a28c94ac8d4aee Author: Jul <jul@9o.is> Date: Sun, 18 Jan 2026 10:34:28 -0500 remove unused functions in tty.c Diffstat:
| M | tty.c | | | 20 | -------------------- |
| M | tty.h | | | 8 | -------- |
2 files changed, 0 insertions(+), 28 deletions(-)
diff --git a/tty.c b/tty.c @@ -140,23 +140,11 @@ void tty_setinvert(tty_t *tty) { tty_sgr(tty, 7); } -void tty_setunderline(tty_t *tty) { - tty_sgr(tty, 4); -} - void tty_setnormal(tty_t *tty) { tty_sgr(tty, 0); tty->fgcolor = 9; } -void tty_setnowrap(tty_t *tty) { - tty_printf(tty, "%c%c?7l", 0x1b, '['); -} - -void tty_setwrap(tty_t *tty) { - tty_printf(tty, "%c%c?7h", 0x1b, '['); -} - void tty_newline(tty_t *tty) { tty_printf(tty, "%c%cK\n", 0x1b, '['); } @@ -184,18 +172,10 @@ void tty_printf(tty_t *tty, const char *fmt, ...) { va_end(args); } -void tty_putc(tty_t *tty, char c) { - fputc(c, tty->fout); -} - void tty_flush(tty_t *tty) { fflush(tty->fout); } -size_t tty_getwidth(const tty_t *tty) { - return tty->maxwidth; -} - size_t tty_getheight(const tty_t *tty) { return tty->maxheight; } diff --git a/tty.h b/tty.h @@ -23,10 +23,7 @@ int tty_input_ready(tty_t *tty, long int timeout, int return_on_signal); void tty_setfg(tty_t *tty, int fg); void tty_setinvert(tty_t *tty); -void tty_setunderline(tty_t *tty); void tty_setnormal(tty_t *tty); -void tty_setnowrap(tty_t *tty); -void tty_setwrap(tty_t *tty); void tty_title(tty_t *tty, char *title); #define TTY_COLOR_BLACK 0 @@ -52,14 +49,9 @@ void tty_clearline(tty_t *tty); void tty_moveup(tty_t *tty, int i); void tty_setcol(tty_t *tty, int col); - void tty_printf(tty_t *tty, const char *fmt, ...); -void tty_putc(tty_t *tty, char c); void tty_flush(tty_t *tty); - -size_t tty_getwidth(const tty_t *tty); size_t tty_getheight(const tty_t *tty); - void tty_hide_cursor(tty_t *tty); void tty_unhide_cursor(tty_t *tty);