1820647 Members
3017 Online
109626 Solutions
New Discussion юеВ

stty intr '^C'

 
SOLVED
Go to solution

stty intr '^C'

Hi.

I have this command in a program.
stty intr '^C'
What does this command do ?

Thank you for your answer.
Best Regards.

Arnaud
Administrator Unix
10 REPLIES 10
Steve Steel
Honored Contributor

Re: stty intr '^C'

Hi


See man stty

You will find something like

stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff

In most profiiles and it is setting a value to a system meta command


Steve Steel

Do not meddle in the affairs of Unix, for it is subtle and quick to core dump.
If you want truly to understand something, try to change it. (Kurt Lewin)
Robin Wakefield
Honored Contributor

Re: stty intr '^C'

hi Arnaud,

from man stty:
==================================
The command:

stty kill '^X' intr '^C'

sets the delete-line character to ^X (Ctrl-X) and the interrupt
character to ^C. This command is usually found in the .login or
.profile file so that ^X and ^C need not be set by the user at each
login session.

==================================

use "stty" to check your current settings.

Rgds, Robin
U.SivaKumar_2
Honored Contributor

Re: stty intr '^C'

Hi,

That command maps CTRL+C key sequence to a UNIX
Interrupt. Therefore when a program is running
occupying the shell prompt . When you press CTRL+C it will interrup the program and you get your shell prompt back

regards,
U.SivaKumar
Innovations are made when conventions are broken

Re: stty intr '^C'

Thank you for your answer.

Steve what do you think when you speak "Do not meddle in the affairs of Unix, for it is subtle and quick to core dump. " (I'm sorry but I don't understand very much, I'm french)
My program is maded by an advanced developer, it must undoubtedly be question of core, could you say some to me of advantage. I will wish to withdraw this line in this program. Can I do it?

Thank you for your answer.

Best Regards.
Arnaud
Administrator Unix
Jean-Louis Phelix
Honored Contributor
Solution

Re: stty intr '^C'

Arnaud,

Sorry for english speaking people ...

Le 'stty intr ^C' est le positionnement de la s??quence de touches qui enverra un signal 2 (SIGINT) au programme, donc un arr??t classique par CTRL-C au clavier. Sinon, il est d'usage dans les forums de terminer une r??ponse par une maxime ou une devise. Dans ce cas c'??tait en gros :

Ne te m??le pas des affaires d'UNIX car c'est subtile et prompt ?? dumper ...

C'est donc sans rapport direct avec ta question et il n'y a pas de raison de retirer la ligne du script.

Cordialement
It works for me (┬й Bill McNAMARA ...)
U.SivaKumar_2
Honored Contributor

Re: stty intr '^C'

It's all french to me .............
Innovations are made when conventions are broken

Re: stty intr '^C'

Merci Jean-Louis. :)
Il serait bon que je revois mes cours d'anglais ;)

Merci en tout cas ?? vous tous pour votre collaboration.

Thank you in any case with you all for your collaboration.

Arnaud
Administrator Unix
U.SivaKumar_2
Honored Contributor

Re: stty intr '^C'

I have gone nuts :-)
Innovations are made when conventions are broken

Re: stty intr '^C'

lol ;)
My God I am drowned in these expressions ;) "I have gone nuts :-) "

Best regards
Arnaud ;)
Administrator Unix
V. Nyga
Honored Contributor

Re: stty intr '^C'

Hi U.SivaKumar,

maybe our explorer is damaged??

And Steve:
I think your quotation is a littlebit confusing for newbies ;-)).

Regards
Volkmar

(Don't worry - be happy)
*** Say 'Thanks' with Kudos ***