Silly little question

BlitzMax Forums/BlitzMax Programming/Silly little question

Tachyon(Posted 2007) [#1]
I was screwing around with a small program this morning and had this rather noob problem... why doesn't the following code produce any output other than "Key > 0"? It also doesn't exit properly.

SuperStrict
FlushKeys
Repeat
   Delay 50
   Local a:Int = GetChar()
   If a = 27 End  'This should be ESC
   Print "Key > " + a
Forever



tonyg(Posted 2007) [#2]
Need to set a graphics command for getchar
SuperStrict
Graphics 800,600
FlushKeys
Repeat
   Delay 50
   Local a:Int = GetChar()
   If a = 27 End  'This should be ESC
   Print "Key > " + a
Forever



Tachyon(Posted 2007) [#3]
Heh, yep that does it. :P

I need coffee...


Grey Alien(Posted 2007) [#4]
Whens Eschalon due? I'm really keen to see it :-)


Tachyon(Posted 2007) [#5]
Hey, thanks for asking Grey! Hopefully this summer sometime.... it's been 2 years of full-time development so I am very anxious to get finished up.