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

@@ -101,7 +101,14 @@ struct str_list
#define I_SWROPT 28
#define I_UNLINK 29
#define KD_LOADFONT 30
#define KDLOADFONT 30
struct winsize
{
unsigned short ws_row;
unsigned short ws_col;
};
#define TIOCGWINSZ 50
#define FLUSHR 1
#define FLUSHRW 2