Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Update tty.h
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinAlavik authored Mar 24, 2024
1 parent 2756923 commit f84bb40
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kernel/tty/tty.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@
#define __TTY_H__

#include <nighterm/nighterm.h>
#incluse <stdint.h>

#define MAX_TTYS 255

typedef struct {
uint8_t id;
struct nighterm_ctx *context;
} TTY_t;

extern TTY_t* ttys[MAX_TTYS];

int tty_spawn(uint8_t id);
int tty_destroy(uint8_t id);

void tty_switch(uint8_t id);
void tty_write(uint8_t id, char ch);
void tty_flush(uint8_t id);

#endif // __TTY_H__

0 comments on commit f84bb40

Please sign in to comment.