mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
21 lines
427 B
C
21 lines
427 B
C
#ifndef _DRIVERS_TTY_H
|
|
#define _DRIVERS_TTY_H
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
|
|
#define MAX_TTYS 4
|
|
#define TTY_WIDTH 80
|
|
#define TTY_HEIGHT 25
|
|
|
|
void tty_init(void);
|
|
void tty_switch(int index);
|
|
int tty_get_current(void);
|
|
void tty_write(const char* data, size_t size);
|
|
void tty_write_string(const char* data);
|
|
void tty_clear(void);
|
|
void tty_set_cursor(int row, int col);
|
|
|
|
#endif // _DRIVERS_TTY_H
|