Re: putitng info from keyboard

new topic     » goto parent     » topic index » view thread      » older message » newer message
Andy said...

Another easy example would be.

code

This will end the program when you press ESC. Check the key.bat for list of keycodes.

That won't do anything since it only calls get_key() once.

include get.e 
 
constant ESC = 27 
 
integer key 
 
while 1 do 
    key = get_key()   -- moved inside the loop 
    if key = ESC then 
        exit 
    end if 
end while 

That's better. grin

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu