Re: exu 3, key.ex

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu