Newbie: raw_input question

Siggy Brentrup bsb at winnegan.de
Sat Dec 25 09:39:04 EST 1999


"J. Holland" <holland at voicenet.com> writes:

> When running python on Linux, how can one trap or disable the ctrl-z
> key combo when it is entered as a response to a raw_input statement?

It's Xmas day :) After looking into the manuals, I'm attaching a
preliminary solution. Among other deficiencies, it doesn't check for
stdin being a tty.

HIH
  Siggy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_suspend.py
Type: application/octet-stream
Size: 628 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/19991225/42769a2f/attachment.obj>
-------------- next part --------------
Siggy Brentrup - bsb at winnegan.de - http://www.winnegan.de/
****** ceterum censeo javascriptum esse restrictam *******


More information about the Python-list mailing list