Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!decwrl!sgi!shinobu!odin!ramoth.esd.sgi.com!msc From: msc@ramoth.esd.sgi.com (Mark Callow) Newsgroups: comp.sys.sgi Subject: Re: Screen width in characters in wsh Message-ID: <1991Apr18.183109.20898@odin.corp.sgi.com> Date: 18 Apr 91 18:31:09 GMT References: <9104162315.AA12854@karron.med.nyu.edu> Sender: news@odin.corp.sgi.com (Net News) Reply-To: msc@sgi.com Organization: Silicon Graphics Inc., Entry Systems Division Lines: 12 In article <9104162315.AA12854@karron.med.nyu.edu>, Dan Karron@UCBVAX.BERKELEY.EDU writes: |> |> What is the stdandard practice to find out how many characters |> wide is the wsh window from inside an application ? I want to avoid unneeded |> line wraps if the user pulls open his window. |> Use curses (libcurses.a that is) or the BSD style ioctl TIOCGWINSZ. -- From the TARDIS of Mark Callow msc@ramoth.sgi.com, ...{ames,decwrl}!sgi!msc "Spirits of genius are always opposed by mediocre minds" - Albert Einstein