Files
mop3/libterminal/terminal.c
kamkow1 a346a5667c
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m59s
Implement TERMINAL_DIMENSIONS op for the terminal device, CE add terminfo command
2026-03-05 16:42:02 +01:00

12 lines
340 B
C

#include <stddef.h>
#include <system.h>
#include <terminal.h>
void terminal_print (const char* string, size_t len) {
device_do ("TERMINAL", TERMINAL_PUTSTR, (void*)string, &len, NULL, NULL);
}
void terminal_dimensions (size_t* cols, size_t* rows) {
device_do ("TERMINAL", TERMINAL_DIMENSIONS, (void*)cols, (void*)rows, NULL, NULL);
}