Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 604444 Details for
Bug 847852
Backspace key sends ^H instead of erasechar()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Python test program
test.py (text/plain), 745 bytes, created by
John Haxby
on 2012-08-14 20:24:36 UTC
(
hide
)
Description:
Python test program
Filename:
MIME Type:
Creator:
John Haxby
Created:
2012-08-14 20:24:36 UTC
Size:
745 bytes
patch
obsolete
>#!/usr/bin/python > >import curses > >keynames = {} >keyvals = {} >for n in dir(curses): > val = eval("curses.%s" % n) > if n.startswith("KEY") and type(val) == int: > keynames[n] = val > try: > keyvals[val].append(n) > except KeyError: > keyvals[val] = list((n,)) > >screen = curses.initscr() >try: > curses.noecho() > curses.cbreak() > screen.keypad(1) > while True: > ch = screen.getch() > if ch == ord('q') or ch == ord('Q'): > break > try: > screen.addstr(10, 10, "{}: {}\n".format(ch, keyvals[ch])) > except KeyError: > screen.addstr(10, 10, "{}: {}\n".format(ch, repr(chr(ch)))) >except KeyboardInterrupt: > pass >finally: > curses.endwin()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 847852
:
604070
|
604071
| 604444