Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: Re: Programs that use curses.
Date: Sat, 15 Jun 1996 18:33:52 -0700	[thread overview]
Message-ID: <199606160133.SAA06345@koala.azstarnet.com> (raw)

>>>>> On Sun, 16 Jun 1996 11:19:24 +1000 (EST), Matthew Geier <matthew@sleeper.apana.org.au> said:

  Matthew>  I seem to have a problem where programs that use curses do
  Matthew> not work properly with keyboard input.

  Matthew>  I downloaded the ncftp-2.3 from the redhat incoming and
  Matthew> found it it didnt work.  I can type commands and exit the
  Matthew> command line, but pressing return is ignored.

This _sounds_ like the infamous termio vs. termios problem.  I'm not
very familiar with curses/ncurses, but if a program attempts to mix
termio and termios structures, it is calling for trouble.  Due to
OSF/1 compatibility (which, in turn is compatible with some old
version of SysV), the termio structure for Linux/Alph is not
compatible with termios.  The best solution is to use termios only,
IMHO.  So, I'd suggest to grep for "termio" and check whether the
program might declare "struct termio" and then use termios calls (or
vice versa).  Also, it's wrong to include <termio.h> and then use
"struct termios" (the defines for the V* macros are different).

Hmmh, independent of curses, this is a FAQ, I guess...

	--david

             reply	other threads:[~1996-06-16  1:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-16  1:33 David Mosberger-Tang [this message]
     [not found] <matthew@sleeper.apana.org.au>
1996-06-16  5:35 ` Programs that use curses Bryan W. Headley
1996-06-16  5:43   ` Matthew Geier
1996-06-16 17:17     ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1996-06-16  1:19 Matthew Geier
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox