Re: wait_key (was <none>)

new topic     » topic index » view thread      » older message » newer message

Jiri was indeed right that i - '0' would be easier than my approach. But I
think I like this approach the most.

>i = find(wait_key(),"0123456789")-1

"To get the value of a one digit number that you enter."


..or -1, if no legal key is pressed.

Ralf

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu