From: Soumendra Ganguly <soumendra@tamu.edu>
To: libc-help <libc-help@sourceware.org>
Subject: tcgetwinsize() and tcsetwinsize()
Date: Sun, 13 Dec 2020 00:42:42 -0600 [thread overview]
Message-ID: <CAB4CD3ZWtPDdHn+U-ak=VQ57BqadvFCpt-cJ5bX75U0npco-dA@mail.gmail.com> (raw)
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
next reply other threads:[~2020-12-13 6:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-13 6:42 Soumendra Ganguly [this message]
2020-12-13 9:16 ` Florian Weimer
2020-12-13 9:53 ` Soumendra Ganguly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAB4CD3ZWtPDdHn+U-ak=VQ57BqadvFCpt-cJ5bX75U0npco-dA@mail.gmail.com' \
--to=soumendra@tamu.edu \
--cc=libc-help@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).