I'm putting together my own messaging system thing, I'm working on the server, but I want it to continue to wait for new connections while still allowing the admin to enter commands for controlling the server like shutting it down correctly, I wanna do this without using threads if possible, is there something like cin or getline() that will get input and store it without halting the program? if not then I'll just use threads, I was just curious if I could get input without halting all movement in my program, any help would be greatly appreciated, thanks in advance. :)
For example, I want to have the input line flash something like "command::" to "command " and back while someone is entering the commands onto the line.
well i was trying to use threads, but my code is bringing the input cursor to the beginning everytime it changes the state of the command input line thing... im useing \r to bring the cursor to the beginning of the line... how else might I go about doing this?