Control-C
Control-C is a common computer command.
≈ 2 min read
Control-C. encyclopegia.org, snapshot enwiki-001296783486. /a/control-c
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Control-C is a common computer command. It is generated by holding down the key and typing the key. In graphical user interface environments, control+C is often used to copy highlighted text to the clipboard.
Macintosh computers use for this. In many command-line interface environments, control+C is used to abort the current task and regain user control.
In command-line environments
Control+C was part of various Digital Equipment operating systems, including TOPS-10 and TOPS-20. Its popularity as an abort command was adopted by other systems including Unix. Later systems that copied it include CP/M, DOS and Windows.
In POSIX systems, the sequence causes the active program to receive SIGINT, the interruption signal. If the program does not specify how to handle this condition, the program is terminated. Typically a program that does handle a SIGINT will still terminate itself, or at least terminate a task running inside it.
This system is usually preserved even in graphical terminal emulators. If control-C is used for copy in the graphical environment, an ambiguity arises. Typically is used for one of the commands, and both appear in the emulator's menus.
On ASCII terminals the keystroke produced the end-of-text control character. There is no indication this had anything to do with the choice to use it to interrupt programs, instead it was chosen because it was not being used for anything else.
See also
C0 and C1 control codes Control-D Control-V Control-X Control-Z Control-\ Keyboard shortcut
Text derived from https://en.wikipedia.org/w/index.php?oldid=1296783486 under CC BY-SA 4.0; modifications have been made.