2024-11-20 22:12:36 +00:00
|
|
|
#ifndef _TTY_H_
|
|
|
|
|
#define _TTY_H_
|
|
|
|
|
|
2024-11-22 22:29:40 +00:00
|
|
|
#include <blue/term/tty.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2024-11-20 22:12:36 +00:00
|
|
|
#define TTY_TMPBUF_SIZE 128
|
|
|
|
|
|
|
|
|
|
struct b_tty;
|
|
|
|
|
|
|
|
|
|
struct tty_format_buf {
|
|
|
|
|
bool in_format;
|
2024-11-22 22:29:40 +00:00
|
|
|
bool reset_vmode;
|
2024-11-20 22:12:36 +00:00
|
|
|
char buf[TTY_TMPBUF_SIZE];
|
|
|
|
|
unsigned int ptr;
|
|
|
|
|
|
|
|
|
|
struct b_tty_vmode vmode;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
2024-11-22 22:29:40 +00:00
|
|
|
#endif
|