Mail Archives: djgpp-workers/2001/08/08/18:49:44
> 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 -