author | Rich Felker <dalias@aerifal.cx> | 2020年08月24日 12:29:30 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020年08月24日 21:31:18 -0400 |
commit | 4d5786544bb52c62fc1ae84d91684ef2268afa05 (patch) | |
tree | 4d511ec96569212a52676dc363091f3cf4a76821 /include/termios.h | |
parent | 9d4b25b4738dbabf628055601d96ba0609c2b4a8 (diff) | |
download | musl-4d5786544bb52c62fc1ae84d91684ef2268afa05.tar.gz |
-rw-r--r-- | include/termios.h | 10 |
diff --git a/include/termios.h b/include/termios.h index d73c780d..793cfc94 100644 --- a/include/termios.h +++ b/include/termios.h @@ -15,6 +15,13 @@ typedef unsigned char cc_t; typedef unsigned int speed_t; typedef unsigned int tcflag_t; +struct winsize { + unsigned short ws_row; + unsigned short ws_col; + unsigned short ws_xpixel; + unsigned short ws_ypixel; +}; + #define NCCS 32 #include <bits/termios.h> @@ -27,6 +34,9 @@ int cfsetispeed (struct termios *, speed_t); int tcgetattr (int, struct termios *); int tcsetattr (int, int, const struct termios *); +int tcgetwinsize (int, struct winsize *); +int tcsetwinsize (int, const struct winsize *); + int tcsendbreak (int, int); int tcdrain (int); int tcflush (int, int); |