www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/08/09:13:27

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Wed, 8 Aug 2001 09:12:28 -0400
MIME-Version: 1.0
Subject: Re: TIOCGWINSZ
Message-ID: <3B71027C.19835.107554@localhost>
References: <3B701C66 DOT 28168 DOT 7C3116 AT localhost>
In-reply-to: <Pine.SUN.3.91.1010808095816.23412F@is>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

> I'm not sure what you are saying here

> So I think we should only define TIOCGWINSZ and struct winsize, for
> now.  Unless you are going to implement the rest of the stuff, that
> is ;-)

Well, we agree.

> 
> > !       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.

Mark


- Raw text -


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