/etc/inittab is the place to start. The
getty program is used to handle the initial setup of the terminal.
According to the
getty manual page, it has an option which can tell it to use a configuration file that lets the administrator set special characters:
Get the settings for special control characters from the
/dev/ttyconf file. See the Special Control Characters section.
That section tells little, but points you to the
stty manual page. It has a little more information:
The default values for the control characters may be changed by a user
with root capability by using
stty and redirecting stdin to the device
/dev/ttyconf. Any of the four command forms specified in the
Description section above may be used. However, only the control
character defaults will be reported or altered. It will have no
effect on the defaults for any of the other modes.
and gives an example:
stty kill '^X' intr '^C' werase '^W' </dev/ttyconf
sets the default values for the delete-line character to
the interrupt character to
^C, and the word erase character to
Any terminal port opened after this command is issued will see these
new default values for the
werase control characters.
Given the comments about applying only to terminal ports opened after, that means you'd have to modify
/etc/inittab to do this initialization.
According to a cached web search, this is answered in HP's documentation:
HP-UX System Administrator's Guide: Configuration Management: HP-UX 11i Version 3
Chapter 2 Configuring System Parameters
Changing Login Special Characters
and concludes with an example line to add before the lines dealing with the console and terminals:
ttc0::bootwait:/sbin/stty intr ^C erase ^H kill ^U < /dev/ttyconf
The lines with
getty would also have to have the
-f option added.