get_key problem in DOS fullscreen

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

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

integer c,i
i=0
    
 while (1) do
	c = get_key()
	if c=' ' then
	    exit
	else if c!=-1 then
		i=i+1
	    end if
	end if
 end while

? {i,c}


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

Search



Quick Links

User menu

Not signed in.

Misc Menu