pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {SET,SHOW} {WIDTH,LENGTH}


From: Ben Pfaff
Subject: Re: {SET,SHOW} {WIDTH,LENGTH}
Date: Mon, 17 Sep 2007 22:14:39 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

John Darrington <address@hidden> writes:

> I'm concerned about get_termcap_viewport currently in
> src/data/settings.c
>
> 1. It means that src/data/libdata.a contains part of a user interface
>    implementation (and in this case makes it depend on libncurses
>    which is silly).
>
> 2. Using the terminal's width and length is obviously appropriate for
>    the terminal interface, but inappropriate for the  GUI where the
>    dimensions of the output window are what matter.
>
> 3. In the case of the terminal interface, shouldn't there be something
>    connecting to SIGWINCH, so that width and length will change
>    accordingly when an xterm is resized? 
>
> I suggest that settings_init takes a pointer to a function, which
> fetches the viewport dimensions.  That way, it can work for both graphic
> and terminal user interfaces.

I think you are right.  Do you want to take a stab at this, or
shall I?
-- 
Ben Pfaff
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]