Kernel/LibC: Implement ioctl(TIOCGWINSZ)

This allows ncurses to get the window size!
This commit is contained in:
2024-08-01 22:56:26 +03:00
parent af78a2d080
commit a578527012
3 changed files with 18 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ int main(int argc, char** argv)
return 1;
}
if (ioctl(STDOUT_FILENO, KD_LOADFONT, argv[1]) == -1)
if (ioctl(STDOUT_FILENO, KDLOADFONT, argv[1]) == -1)
{
perror("ioctl");
return 1;