diff options
Diffstat (limited to 'tty.h')
-rw-r--r-- | tty.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -3,7 +3,7 @@ #include <termios.h> -typedef struct{ +typedef struct { int fdin; FILE *fout; struct termios original_termios; @@ -22,15 +22,15 @@ void tty_setfg(tty_t *tty, int fg); void tty_setinvert(tty_t *tty); void tty_setnormal(tty_t *tty); -#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_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 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 |