1834215 Members
2220 Online
110066 Solutions
New Discussion

Re: Replace key function

 
SOLVED
Go to solution
haeman
Frequent Advisor

Replace key function

in my system , the ctrl-C is not work ( ctrl-C should be used to break the running process ) , but ctrl-Z works , I don't know why ctrl-C is not work , I still can't find the reason . Now I would like to replace its function --> if the user press ctrl-Z then it will send the same command as ctrl-C to our system , is it possible ? thx
3 REPLIES 3
Victor Fridyev
Honored Contributor
Solution

Re: Replace key function

Hi,

You can add needed definitions in ~/.kshrc as follows:
stty erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z"

You can replace ctrl-Char as you need

HTH
Entities are not to be multiplied beyond necessity - RTFM
OFC_EDM
Respected Contributor

Re: Replace key function

Which shell are you using?

For fun try running bash.
Then see if CTRL-C works.

If it does then it's a setup issue and not a stuck key or something like that.
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: Replace key function