get_input only reads one message; reset terminal properly