tcgetwinsize() and tcsetwinsize()

Soumendra Ganguly soumendra@tamu.edu
Sun Dec 13 06:42:42 GMT 2020


Hello. According to
https://www.austingroupbugs.net/view.php?id=1151#c3856, tcgetwinsize()
and tcsetwinsize() for getting/setting tty winsize are going to appear
in POSIX.1 issue 8. NetBSD already has them:

1. http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcgetwinsize.c?only_with_tag=MAIN
2. http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcsetwinsize.c?only_with_tag=MAIN

Also, musl-libc has them. Would implementations of these functions
using ioctl()+TIOCGWINSZ?TIOCSWINSZ be welcome?

Thank you.
Soumendra


More information about the Libc-help mailing list