|Mailing List firstname.lastname@example.org Archived Message #30||back to list|
In <email@example.com>, on 05/14/22
at 10:29 AM, "Dave Yeo" <firstname.lastname@example.org> said:
Need something like this, but we are missing TIOCGWINSZ()
int term_width(int fd)
struct winsize geometry;
geometry.ws_col = 0;
if(ioctl(fd, TIOCGWINSZ, &geometry) >= 0)
Ideas? Even OS/2 API?
Assuming this is a VIO app, the Vio functions are your friends.
VioGetMode should give you what you need.
Mail to ListMaster