Qbasicnews.com

Full Version: Problems with inkey$ and screen on linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

this little programm doesn't work...

Code:
screen 19

color 14,200

do
h=h+1
locate 1,1:? h
loop until inkey$=" "

but if you uncomment "screen 19" you can press Space and it ends.

another example...


Code:
screen 19

color 14,200

do
b$=inkey$
h=h+1
locate 1,1:? h
locate 5,1:? b$
loop

if you uncomment the screen command it works fine and every key you press is printed.

could be a bug...
Both the example programs you posted above work flawlessly here... What error do they give to you exactly?
Which Linux do you use?

XFree86 Version 4.3.0 (Fedora Core 1: 4.3.0-42)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.21-2.ELsmp i686 [ELF]
OS Kernel: Linux version 2.4.22-1.2115.nptl

and

Fedora Core 2 with the 2.6.6 Kernel from kernel.org
X Protocol Version 11, Revision 0, Release 6.7
Build Operating System: Linux 2.4.21-14.ELsmp i686 [ELF]
Current Operating System: Linux ASMO 2.6.6
Build Date: 07 May 2004
OS Kernel: Linux version 2.6.6 (root@ASMO) (gcc-Version 3.3.3 20040412 (Red Hat Linux 3.3.3-7))

on both systems the same failure...

when i
...press everything which is not listed below inkey$ returns chr$(1)
...do nothing inkey$ returns chr$(0)
...click the X of the Window or press entf, end, Pg up,Pg down, Pos1, or Paste inkey$ is chr$(255)

i think i tried every key...
Ok, problem fixed in CVS.
Also, discovered gfxlib under linux was not reporting F1-F10 keypresses to INKEY$, now fixed that as well.