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 067b447 commit 37d08d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kernel/tty/tty.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@

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

#define MAX_TTYS 255

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

extern TTY_t* ttys[MAX_TTYS];
extern tty* ttys[MAX_TTYS];

int tty_spawn(uint8_t id);
int tty_destroy(uint8_t id);
Expand All @@ -20,4 +22,4 @@ void tty_switch(uint8_t id);
void tty_write(char ch);
void tty_flush();

#endif // __TTY_H__
#endif // __TTY_H__

0 comments on commit 37d08d9

Please sign in to comment.