GameEngine/source/core_terminal.c
2026-02-18 17:20:25 +01:00

29 lines
404 B
C

#include <engine.h>
char buffer[4096];
int index;
void TermInput() {
int c = 0;
c = GetCharPressed();
while (c) {
//handle special char :
/*
Backslash
Enter
Esc
Ctrl +
Alt +
Maj +
Caps Lock
Space ?
arrow left and right
and cursor position
history ?
maybe could use readline
*/
buffer[index] = c;
c = GetCharPressed();
}
}