Re: get_key problem in DOS fullscreen

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

DB James wrote:
> 
> Donald wrote:
> > 
> > Does anyone know what the problem may be with the following?
> > It may be my system but wondering if anyone else has had anything similar or
> > can help.
> > 
> > This code works fine when run in a window but if I go to fullscreen (using
> > Alt-enter
> > before running) it seems to hang.
> > I have to use alt-enter which minimises the window and then close the window
> > 

> 
> Hi Donald,
> 
> I moved one of your lines and it works in either a window or fullscreen:
> 
> }}}
<eucode>
> integer c,i
> i=0
>     
>  while (1) do
>   c = get_key()
>   if c=' ' then
>       exit
>   else if c!=-1 then
>           i=i+1
>           ? {i,c}
>       end if
>   end if
> end while
> </eucode>
{{{

> 
> To keep the window from disappearing immediately, put something like
> while get_key()=-1 do end while
> as the last line.
> 
> --Quark
You code gives the same problem on my system!?

Maybe it's to do with the NVidia GEforce6150 driver or the Dell 1707 LCD screen.
I don't know why they would affect the get_key routine though.
Presumably PS2 keyboard is fine? Windows XP pro should be ok?

thanks anyway

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

Search



Quick Links

User menu

Not signed in.

Misc Menu