Quote:
what do I do if I want Ctrl-j to mean something different in my program than pressing enter?
|
If you're using
ncurses, you need a different (i.e., wildly nonstandard) keyboard, or load your keyboard with a different set of characters somehow, of which I'm completely ignorant.
Unless you're willing to get raw keycodes (not raw characters, as you're getting now),
^J and
<Enter> (or however that key is labeled on your keyboard) yield the same value exactly.