Gönderim Listesi gnuports@2rosenthals.com Ar?vli ?leti #29
listeye geri dön
Gönderen:
"Steven Levine" <gnuports@2rosenthals.com>
Tam Ba?l?klar
Çözülmemi? ?leti
Konu:
Re: [GNU Ports] Terminal width?
Tarih:
Sat, 14 May 2022 11:35:03 -0700
Alacak:
"GNU Ports for eCS Mailing List" <gnuports@2rosenthals.com>
In <list-3690493@2rosenthals.com>, on 05/14/22
at 10:29 AM, "Dave Yeo" <gnuports@2rosenthals.com> said:
Hi Dave,
>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)
> return (int)geometry.ws_col;
> return -1;
>}
>Ideas? Even OS/2 API?
Assuming this is a VIO app, the Vio functions are your friends.
VioGetMode should give you what you need.
Steven
--
----------------------------------------------------------------------
"Steven Levine" <steve53@earthlink.net> Warp/DIY/BlueLion etc.
www.scoug.com www.arcanoae.com www.warpcave.com
----------------------------------------------------------------------
Abone ol:
Bildirim
,
Derleme
,
Fihrist
.
Abonelikten ç?k
Liste Sorumlusuna Postala