getch returning ENOENT

Bug #1549665 reported by Serge Hallyn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The program 'sc' was recently recompiled (according to changelog) for ncurses6. Since that happened, its call to getch() (in lex.c:nmgetch() around line 680) returns -1 with errno ENOENT. The version in older releases properly waits for an input character.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hm, maybe this is a bug in the sc program after all. It seems to be calling notimeout(stdscr, TRUE). i don't know why it's doing that, or why it never seemed to do anything in older releases.

Revision history for this message
Thomas Dickey (dickey-his) wrote :

Likely sc was always wrong, and ncurses was fixed. Now it's sc's turn to play.

http://invisible-island.net/ncurses/NEWS.html#t20151128

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1549665] Re: getch returning ENOENT

D'oh. Thanks, I'll patch sc.

affects: ncurses (Ubuntu) → sc (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sc - 7.16-4ubuntu1

---------------
sc (7.16-4ubuntu1) xenial; urgency=medium

  * lex.c: do not set notimeout (LP: #1549665)

 -- Serge Hallyn <email address hidden> Thu, 25 Feb 2016 14:38:33 -0800

Changed in sc (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.