I'm reading user input from console using ReadConsoleW ()
function. I would like the user to be able to input end of line character '\n' in the console, so this character will be interpreted only as a new line character, but not as the end of ReadConsoleW ()
input. It should look like this:
Program output: Enter your message.
User input:
One of the basic pieces of furniture, a chair is a type of seat.
Chairs vary in design.
I need it to allow the user edit his input until it's decided that the message is ready for reading, otherwise the user will be bounded by the need to edit only the last input paragraph. So:
- Is it possible to specify that input should not end on a new line character?
- If so, how to specify a character as the end of input, for example, stop reading when '$' character appears?