HPUX非常麻烦,ctrl+c都需要手动设置才能发送sigint,本来记得是stty, 但是man的篇幅太长,把最精华的贴出来就好:
EXAMPLES
Example 1
Set the delete-line character to ^X (Ctrl-X) and the interrupt
character to ^C.
stty kill '^X' intr '^C'
This command is usually found in a .login or .profile file so that ^X
and ^C need not be set by the user at each login session.
Example 2
Set the default values for the delete-line character to ^X (Ctrl-X),
the interrupt character to ^C, and the word erase character to ^W.
stty kill '^X' intr '^C' werase '^W' </dev/ttyconf
Any terminal port opened after this command is issued will see these
new default values for the kill, intr, and werase control characters.