mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 17:37:35 +00:00
Add TIOCGWINSZ ioctl so userland can determine terminal geometry.
(Don't) use this to implement short-form output in ls. I'm too tired to make a nice column formatting algorithm. I just wanted something concise when I type "ls".
This commit is contained in:
parent
f5a83c4d8a
commit
ac7a60225e
11 changed files with 208 additions and 63 deletions
|
@ -208,6 +208,10 @@ namespace Unix {
|
|||
#define TCSADRAIN 1
|
||||
#define TCSAFLUSH 2
|
||||
|
||||
struct winsize {
|
||||
unsigned short ws_row;
|
||||
unsigned short ws_col;
|
||||
};
|
||||
|
||||
typedef dword dev_t;
|
||||
typedef dword ino_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue