I want to create a console program displaying all my key presses. So I created a script including all important things. But what is wrong? No console-cursor is displayed and no text too. Can anybody help me please?
You have gotten yourself into an infinite loop on line 16. The while(true) statement doesn't actually execute your for loop, because i doesn't start off as 255 and thus never gets a chance to be incremented, so you just output the keys you have input so far: to be precise: nothing. Try changing the comparison for the for loop to != or <.