Hi,
I'm doing a project with java using the console and I'd like to perform some actions (such as printing to the screen etc) while waiting for input. I was planning to accomplish this by using unbuffered input, by polling the keyboard and performing other actions alternatively, but apparently retrieving unblocked input from a console-based java application is close to impossible (I've tried using JLine but it was way too complicated for me and I still did not get what I wanted).
I was thinking maybe there's a way to use the normal System.in.read() functions for input and performing other actions at the same time by using 2 seperate threads, but before I bother diving head-first into the whole topic of threads, I'd like to know is this possible?
I'm using BlueJ as an IDE and Windows OS, and I'm pretty sure I won't need to run this application on other platforms, so platform-independence is not an issue as long as it runs on windows.
Thanks,
Dean