delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/08/18:49:44

From: "Mark E." <snowball3 AT softhome DOT net>
To: djgpp-workers AT delorie DOT com
Date: Wed, 8 Aug 2001 18:49:53 -0400
MIME-Version: 1.0
Subject: Re: TIOCGWINSIZE idea
Message-ID: <3B7189D1.14369.5D0609@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

> Currently, the termios emulation is enabled at the first use of a termios 
> function. Any thoughts on also enabling it when TIOCGWINSIZE is used?

To expand a bit:
The idea is to initialize the termios emulation using a hook function only 
if it's been linked in already.

DJGPP advertises with its termcap entry (and a future equivalent terminfo 
entry) that it can perform certain functions which require some type of 
action to support. ncurses, readline, etc. assume that they're supported 
by default. An example is the dots nurses demo which uses just the 
terminfo database (no curses). The terminfo code doesn't use any of the 
termios functions that would normally cause the termios emulation support 
to be enabled, so all you see are screenfulls of gibberish.

The ncurses maintainer is willing to add a call to '__libc_termios_init' 
to ncurses. That will fix ncurses, but what about other projects that may 
come along in the future. Should they also be fixed, or should the library 
be fixed? I prefer a library solution since other systems need no such 
fix, so why should DJGPP have to be special?

I think a solution like the above or add the constructor attribute to 
__libc_termios_init is worth considering so special treatment isn't 
required.

Mark

- Raw text -


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