[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{SET,SHOW} {WIDTH,LENGTH}
From: |
John Darrington |
Subject: |
{SET,SHOW} {WIDTH,LENGTH} |
Date: |
Mon, 17 Sep 2007 13:32:57 +0800 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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.
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature
- {SET,SHOW} {WIDTH,LENGTH},
John Darrington <=