Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.unix.programmer > #298

Re: Is there a POSIX-compliant way of being asynchronously notified of terminal window resizing?

Newsgroups comp.unix.programmer
From Geoff Clare <geoff@clare.See-My-Signature.invalid>
Subject Re: Is there a POSIX-compliant way of being asynchronously notified of terminal window resizing?
References <812bf69b-7141-46c5-a03b-faae92f6c2ce@f15g2000pro.googlegroups.com> <IU.D20110429.T015745.P403.Q2@J.de.Boyne.Pollard.localhost> <e5ccb93e-4f79-4a8e-a937-a2665c607a81@c41g2000yqm.googlegroups.com> <c1d7d4fe-3403-4957-97bb-703a27b6e035@r33g2000prh.googlegroups.com>
Date 2011-05-03 14:05 +0100
Message-ID <g5b598-ciq.ln1@leafnode-msgid.gclare.org.uk> (permalink)
Organization Zen Internet

Show all headers | View raw


guenther@gmail.com wrote:

> On Apr 29, 3:34 am, puppi <fabricio.pu...@gmail.com> wrote:
>> On Apr 28, 10:57 pm, Jonathan de Boyne Pollard <J.deBoynePollard-
>> newsgro...@NTLWorld.COM> wrote:
>> > > I'm currently handling SIGWINCH for that purpose, but I was wondering
>> > > if there may be a more general method.
>>
>> > Define what you think "more general" would be.
>>
>> Supported by any POSIX compliant platform. I'm not talking about
>> functionality, but about portability.
>
> Do you see anywhere in the POSIX standard that talks about window size
> at all?  I don't.

The only relevant place I'm aware of is the descriptions of the LINES
and COLUMNS environment variables in XBD section 8.3.  This is the one
for COLUMNS (the one for LINES is similar):

    This variable shall represent a decimal integer >0 used to
    indicate the user's preferred width in column positions for the
    terminal screen or window; see Column Position. If this variable
    is unset or null, the implementation determines the number of
    columns, appropriate for the terminal or window, in an unspecified
    manner. When COLUMNS is set, any terminal-width information
    implied by TERM is overridden. Users and conforming applications
    should not set COLUMNS unless they wish to override the system
    selection and produce output unrelated to the terminal
    characteristics.

    Users should not need to set this variable in the environment
    unless there is a specific reason to override the implementation's
    default behavior, such as to display data in an area arbitrarily
    smaller than the terminal or window.

The part about "an unspecified manner" pretty much answers the OP's
question.

-- 
Geoff Clare <netnews@gclare.org.uk>

Back to comp.unix.programmer | Previous | NextPrevious in thread | Find similar


Thread

Is there a POSIX-compliant way of being asynchronously notified of terminal window resizing? puppi <fabricio.puppi@gmail.com> - 2011-04-27 12:33 -0700
  Re: Is there a POSIX-compliant way of being asynchronously notified of terminal window resizing? Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2011-04-29 02:57 +0100
    Re: Is there a POSIX-compliant way of being asynchronously notified of terminal window resizing? puppi <fabricio.puppi@gmail.com> - 2011-04-29 03:34 -0700
      Re: Is there a POSIX-compliant way of being asynchronously notified of terminal window resizing? "guenther@gmail.com" <guenther@gmail.com> - 2011-04-29 23:37 -0700
        Re: Is there a POSIX-compliant way of being asynchronously notified of terminal window resizing? Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2011-05-03 14:05 +0100

csiph-web