term: update module to work on linux and darwin

This commit is contained in:
2024-11-22 22:29:40 +00:00
parent 753d3ea9d3
commit d88b42f50e
6 changed files with 545 additions and 352 deletions

View File

@@ -1,12 +1,16 @@
#ifndef _TTY_H_
#define _TTY_H_
#include <blue/term/tty.h>
#include <stdbool.h>
#define TTY_TMPBUF_SIZE 128
struct b_tty;
struct tty_format_buf {
bool in_format;
bool reset_vmode;
char buf[TTY_TMPBUF_SIZE];
unsigned int ptr;
@@ -16,4 +20,4 @@ struct tty_format_buf {
extern struct tty_format_buf *z__b_tty_get_format_buf(struct b_tty *tty);
extern void z__b_tty_putc(struct b_tty *tty, char c);
#endif
#endif