Ok, i'm working on a programming project which sends pseudo emails between users on a single computer and i have a question on ending input. The message text is a STL string, and i want to end input by hitting ctrl-x. I can do it with cin.getline, reading until i hit the ^X char, but i want to know if there is a way to do this without echoing out the ^X char and having to hit enter.