Bug 101546
| Summary: | ReadKey(-1) is always undefined | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Jan Martinek <honza> |
| Component: | perl-TermReadKey | Assignee: | Warren Togami <wtogami> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-09-11 10:36:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
The script properly terminates for me with the perl in rawhide; do 'rpm -V perl' and 'rpm -V perl-TermReadKey' report any modified files? closing due to lack of response |
Description of problem: In "cbreak" mode, ReadKey(-1) should return a pressed key or undefined if no key was pressed. But the return value is always undefined even if a key is pressed. Version: perl-TermReadKey-2.20-7 How reproducible: Always Steps to Reproduce: 1. The following program should terminate after pressing a key: #!/usr/bin/perl -w use Term::ReadKey; ReadMode 3; while (not defined (ReadKey(-1))) {} Actual results: The program makes an endless loop no matter which key is pressed. Expected results: The program should terminate after pressing a key