Currently I have a program that reads from the standard input, occasionally the program needs to just keep running if no input is made, usually this is a test script there i
You can use cin.peek to check if there is anything to read, and then call getline if there is. There's no such thing as non-blocking getline by itself though.