I have a c++ application which reads in commands from the user. The problem is that I want to read control characters. Some of the control characters are the same as other keys.
For instance, ctrl-j is the same as ENTER, and ctrl-h is the same as backspace. How can I make it so these keys read differently? I know it has to be possible since programs like vi handle ctrl-j differently than the enter key.