Fix the build and introduce some APIs

The tcgetwinsize() and tcsetwinsize() APIs are now available. The
printargs.com example also now displays the baud rate.
This commit is contained in:
Justine Tunney 2023-01-20 09:25:45 -08:00
parent cac86197cb
commit 1473eafd1a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 120 additions and 2 deletions

View file

@ -35,6 +35,8 @@ int cfsetospeed(struct termios *, unsigned);
int cfsetispeed(struct termios *, unsigned);
uint32_t cfgetospeed(const struct termios *);
uint32_t cfgetispeed(const struct termios *);
int tcsetwinsize(int, const struct winsize *);
int tcgetwinsize(int, struct winsize *);
/*───────────────────────────────────────────────────────────────────────────│─╗
cosmopolitan § teletypewriter » undiamonding