Change wait_input to include prompt, reset cursor after chatbuffer_add