[Tutor] Input

Mark Lybrand mlybrand at gmail.com
Fri Sep 30 22:27:27 CEST 2011


There is apparently a livewires package that may be of someuse.
On Sep 30, 2011 1:25 PM, "Dave Angel" <d at davea.name> wrote:
> On 09/30/2011 03:24 PM, Cameron Macleod wrote:
>> Hi,
>>
>> When you type
>>
>> Input("\n\nPress The Enter Key To Exit")
>>
>> it forces you to press the enter key to close the program. Why is it the
>> enter key instead of e.g. the 'esc' key?
>>
>>
>
> The input() function (not the Input()) function accepts a line of text
> from the user. That line is terminated by a newline, generated by the
> enter key.
>
> If you're trying to just wait for an "any-key", I don't know of any
> portable way to do it. There is a way in Windows, however.
>
>
>
> --
>
> DaveA
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110930/12faae31/attachment.html>


More information about the Tutor mailing list