Console app input

BlitzMax Forums/BlitzMax Beginners Area/Console app input

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hey, a quick question concerning consoles. I am making a server app, which (as a server does) needs to be constantly executing it's code. I ALSO need it to take input without pausing the code execution so the input command is out of the question. Polled input (if KeyDown, etc) does not seem to work with console apps, and I don't want to have to create another app just to act as input for the server.

Any help would be appreciated :D

EDIT: I did some sniffing around and found that the input() function simply reads from the stream connecting blitz to the console using readline(). I also found that the function that tells the console to accept input at all, is that readline() function. The reason it pauses (I think) is that readline pauses if you call it and there is nothing to read. So if there is a way of asking the console for input without having the pausiness of readline, that is what I need.