terminal shortcuts within source code?

Is there a way to output shortcuts, like CTRL-U, in the source code of a C++ file? And how? (For those of you who don't know CTRL-U clears the line you are typing on in terminal)
Last edited on
It's unlikely that your terminal would interpret output as a keyboard shortcut. I believe the termcap library will let you do this sort of thing directly. (Wow, when's the last time anyone used termcap?)
Topic archived. No new replies allowed.