I'm looking to write a program that asks for user_input on a cyclical basis, but does not halt further procedures while waiting for the user to give input.
Is there a command that acts as a press of the RETURN key?  Does this have to do with writing to stdin?  An alternative might be to see if there is no user_input that currently exists.
Imagine operating the code below, where the program is constantly running, even if the user provides no input,
import os
import time
import termios
import sys
x = 0
while x < 60:
    time.sleep(0.5)
    x += 1
    print x
    user_input = raw_input(" ")
    if user_input == "exit":
        os._exit(1)
 
    
/nto the terminal? – Colin Hancey Oct 19 '17 at 22:12