This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2003年06月14日 10:51 by doko, last changed 2022年04月10日 16:09 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg16411 - (view) | Author: Matthias Klose (doko) * (Python committer) | Date: 2003年06月14日 10:51 | |
[forwarded from http://bugs.debian.org/178205] I'm not able to reproduce this bug in current 2.1/2.2. In 2.3 CVS 20030614, changing the window size of an xterm results in the crash The following code crashes. It does not occur when getkey () is not used. # Crash python import curses, signal, time, sys def sigwinch (signum, frame): return win = curses.initscr () signal.signal(signal.SIGWINCH, sigwinch) while 1: win.getkey () curses.endwin () Traceback (most recent call last): File "curs.py", line 9, in ? while 1: win.getkey () _curses.error: no input |
|||
| msg16412 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2003年06月14日 13:43 | |
Logged In: YES user_id=21627 This is not a bug in Python. In _cursesmodule.c rev. 2.70, Patch #633635 from David M. Cooke was implemented, which makes the implementation match the documentation: getch([x, y]) Get a character. Note that the integer returned does not have to be in ASCII range: function keys, keypad keys and so on return numbers higher than 256. In no-delay mode, an exception is raised if there is no input. This exception is raised when the underlying wgetch returns ERR, so if there is a bug here, it might be in ncurses, for having wgetch return on window change. |
|||
| msg16413 - (view) | Author: A.M. Kuchling (akuchling) * (Python committer) | Date: 2003年10月21日 13:06 | |
Logged In: YES user_id=11375 I agree with MvL; this is not a bug. An explanation of this point is worth including in the curses HOWTO at some point, though. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月10日 16:09:12 | admin | set | github: 38649 |
| 2003年06月14日 10:51:25 | doko | create | |