delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/08/09:34:32

Date: Wed, 8 Aug 2001 16:34:10 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Mark E." <snowball3 AT bigfoot DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: Re: TIOCGWINSZ
In-Reply-To: <3B71027C.19835.107554@localhost>
Message-ID: <Pine.SUN.3.91.1010808163257.25973D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 8 Aug 2001, Mark E. wrote:

> > > !       win->ws_xpixel = win->ws_col * 8;  /* Assumes 8 pixel width. */
> > > !       win->ws_ypixel = win->ws_row * _farnspeekw(0x0485);
> > 
> > Shouldn't we put 1 here, since pixels are irrelevant in text mode?
> > What do other text-mode environments (Unix, GNU/Linux) return in these
> > members?
> 
> Cygwin's console driver doesn't bother setting these fields. Neither does 
> Linux's.

Then I'd suggest to set them to 1, lest some oh-too-smart program decides 
we support sub-character-cell resolution on the screen.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019