Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Programs that use curses.
@ 1996-06-16  1:19 Matthew Geier
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Geier @ 1996-06-16  1:19 UTC (permalink / raw)


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

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

 I grabbed the source to ncftp from probe.net, ran configure and it built
without a wimper. It to exhibits the same behavour, making the program
inoperable. The same source file built a perfectly working version under
Solaris on my Sun system at work.

 I also notice a similar problem with tin-1.22-4 - it only processes
keystrokes in groups of 4, making its menu's very hard to navigate.

 The system is a noname, ncurses-1.9.6-7, libc-0.40-1, and currently 
kernel 2.0.0, although tin has never worked, so it doesnt seem to be
kernel version dependant.

 Any one have any ideas ?

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Programs that use curses.
@ 1996-06-16  1:33 David Mosberger-Tang
  0 siblings, 0 replies; 5+ messages in thread
From: David Mosberger-Tang @ 1996-06-16  1:33 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <matthew@sleeper.apana.org.au>]

end of thread, other threads:[~1996-06-16 17:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-16  1:19 Programs that use curses Matthew Geier
  -- strict thread matches above, loose matches on Subject: below --
1996-06-16  1:33 David Mosberger-Tang
     [not found] <matthew@sleeper.apana.org.au>
1996-06-16  5:35 ` Bryan W. Headley
1996-06-16  5:43   ` Matthew Geier
1996-06-16 17:17     ` Richard Henderson

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