Re: exu 3, key.ex
- Posted by Robert Craig <rds at RapidEuphoria.com> Jun 19, 2006
- 603 views
ChrisBurch2 wrote: > Hi > }}} <eucode> > integer code > > puts(1, "Press any key. I'll show you the key code. Press q to quit\n\n") > while 1 do > code = get_key() > if code != -1 then > printf(1, "The key code is: %d\n", code) > if code = 'q' then > exit > end if > end if > end while > > </eucode> {{{ > > works > > > }}} <eucode> > integer code > > puts(1, "Press any key. I'll show you the key code. Press q to quit\n\n") > while 1 do > code = get_key() > if code != -1 then > printf(1, "The key code is: %d\n", code) > if code = 'q' then > exit > end if > else > printf(1, "\n", {}) > end if > end while > > </eucode> {{{ > > seg faults > > ?? It fails on my machine too, creating a debug.log file as well. It shouldn't be too hard to fix. Thanks for reporting it. Did you also get a debug.log file? What Linux distribution are you using? Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com