RE: Q

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

gwalters at sc.rr.com wrote:
> can someone explain why this program displays 316 for F2
> and 113 for 'q'?

Because those are the specific codes for those keys. Your constants 
don't affect this particular program, so you could remove them and do 
this:

> include get.e
> atom c
> 
> while 1 do
>  c = wait_key()
>  printf (1,"%d %d\n",c)
>  if c = 27 then
>   exit
>  end if
> 
> end while

You'll get the same results.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu