Moved libk/terminal to libk/tty (also changed terminal.h to tty.h)

This commit is contained in:
2024-10-18 20:08:21 +02:00
parent 958625b798
commit 1071e9604a
7 changed files with 6 additions and 6 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef TERMINAL_TERMINAL_H
#define TERMINAL_TERMINAL_H
#include <stdint.h>
#include <stdbool.h>
typedef struct {
uint32_t x; // X Position of cursor in characters
uint32_t y; // Y Position of cursor in characters
uint32_t bg; // Printed character background
uint32_t fg; // Printed character foreground
uint32_t width; // Width in characters
uint32_t height; // Height in characters
char cursorChar; // Character to use as a cursor
bool hideCursor; // Should we display the cursor
} terminal_t;
extern terminal_t* terminal;
int32_t terminalWrite(const void* buf, uint32_t len);
void toggleCursor();
#endif