I've been building an [IDE][1]IDE using C# and only the console. To get keyboard input in real time (as opposed to a read–eval–print loop,) I have the following method to get keyboard input:
Edit: Nikita B's answer is marked as Accepted because it reduced the amount of ticks taken from ~60 to ~30. Thanks! [1]: http://www.github.com/tngreene/BefungeSharp
I've been building an [IDE][1] using C# and only the console. To get keyboard input in real time (as opposed to a read–eval–print loop,) I have the following method to get keyboard input:
Edit: Nikita B's answer is marked as Accepted because it reduced the amount of ticks taken from ~60 to ~30. Thanks! [1]: http://www.github.com/tngreene/BefungeSharp
I've been building an IDE using C# and only the console. To get keyboard input in real time (as opposed to a read–eval–print loop,) I have the following method to get keyboard input:
Edit: Nikita B's answer is marked as Accepted because it reduced the amount of ticks taken from ~60 to ~30. Thanks!
I've been building an IDE [IDE][1] using C# and only the console. To get keyboard input in real time (as opposed to a read–eval–print loop,) I have the following method to get keyboard input:
Is this a sub optimal solution for getting keyboard input? I'm very willing to breakout P/Invoke or a threaded solution if need be. I can't support an event handler based solution due to the tight control of sequence needed.
Edit: Nikita B's answer is marked as Accepted because it reduced the amount of ticks taken from ~60 to ~30. Thanks! [1]: http://www.github.com/tngreene/BefungeSharp
I've been building an IDE using C# and only the console. To get keyboard input in real time (as opposed to a read–eval–print loop,) I have the following method to get keyboard input:
Is this a sub optimal solution for getting keyboard input? I'm very willing to breakout P/Invoke or a threaded solution if need be. I can't support an event handler based solution due to the tight control of sequence needed.
I've been building an [IDE][1] using C# and only the console. To get keyboard input in real time (as opposed to a read–eval–print loop,) I have the following method to get keyboard input:
Is this a sub optimal solution for getting keyboard input? I'm very willing to breakout P/Invoke or a threaded solution if need be. I can't support an event handler based solution due to the tight control of sequence needed.
Edit: Nikita B's answer is marked as Accepted because it reduced the amount of ticks taken from ~60 to ~30. Thanks! [1]: http://www.github.com/tngreene/BefungeSharp