Control-C

Last updated

Control-C is a common computer command. It is generated by holding down the Ctrl key and typing the C key.

Contents

In graphical user interface environments, control+C is often used to copy highlighted text to the clipboard. [1] Macintosh computers use ⌘ Command+C for this.

In many command-line interface environments, control+C is used to abort the current task and regain user control. [2]

In graphical environments

Larry Tesler created the concept of cut, copy, paste, and undo for human-computer interaction while working at Xerox PARC to control text editing. During the development of the Macintosh it was decided that the cut, paste, copy and undo would be used frequently and assigned them to the -Z (Undo), ⌘-X (Cut), ⌘-C (Copy), and ⌘-V (Paste). [3] [4] [5] The four letters are all located together at the left end of the bottom row of the standard QWERTY keyboard. IBM and early versions of windows used a different set of keys as part of IBM Common User Access. Later Windows adopted the shortcuts using Control instead of the Command key, as the usual keyboard of IBM PC has no Command key.

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 ⇧ Shift+Ctrl+C 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.[ citation needed ]

See also

Related Research Articles

The keyboard for IBM PC-compatible computers is standardized. However, during the more than 30 years of PC architecture being frequently updated, many keyboard layout variations have been developed.

Cut, copy, and paste are essential commands of modern human–computer interaction and user interface design. They offer an interprocess communication technique for transferring data through a computer's user interface. The cut command removes the selected data from its original position, and the copy command creates a duplicate; in both cases the selected data is kept in temporary storage called the clipboard. Clipboard data is later inserted wherever a paste command is issued. The data remains available to any application supporting the feature, thus allowing easy data transfer between applications.

<span class="mw-page-title-main">Control key</span> Key on computer keyboards

In computing, a Control keyCtrl is a modifier key which, when pressed in conjunction with another key, performs a special operation. Similarly to the Shift key, the Control key rarely performs any function when pressed by itself. The Control key is located on or near the bottom left side of most keyboards, with many featuring an additional one at the bottom right.

<span class="mw-page-title-main">Keyboard shortcut</span> Series of computer keys to quickly invoke a software program or perform a preprogrammed action

In computing, a keyboard shortcut also known as hotkey is a series of one or several keys to quickly invoke a software program or perform a preprogrammed action. This action may be part of the standard functionality of the operating system or application program, or it may have been written by the user in a scripting language. Some integrated keyboards also include pointing devices; the definition of exactly what counts as a "key" sometimes differs.

<span class="mw-page-title-main">Text-based user interface</span> Type of interface based on outputting to or controlling a text display

In computing, text-based user interfaces (TUI), is a retronym describing a type of user interface (UI) common as an early form of human–computer interaction, before the advent of bitmapped displays and modern conventional graphical user interfaces (GUIs). Like modern GUIs, they can use the entire screen area and may accept mouse and other inputs. They may also use color and often structure the display using box-drawing characters such as ┌ and ╣. The modern context of use is usually a terminal emulator.

Common User Access (CUA) is a standard for user interfaces to operating systems and computer programs. It was developed by IBM and first published in 1987 as part of their Systems Application Architecture. Used originally in the MVS/ESA, VM/CMS, OS/400, OS/2 and Microsoft Windows operating systems, parts of the CUA standard are now implemented in programs for other operating systems, including variants of Unix. It is also used by Java AWT and Swing.

Print Screen is a key present on most PC keyboards. It is typically situated in the same section as the break key and scroll lock key. The print screen may share the same key as system request.

The Command key, , formerly also known as the Apple key or open Apple key, is a modifier key present on Apple keyboards. The Command key's purpose is to allow the user to enter keyboard commands in applications and in the system. An "extended" Macintosh keyboard—the most common type—has two command keys, one on each side of the space bar; some compact keyboards have one only on the left.

Undo is an interaction technique which is implemented in many computer programs. It erases the last change done to the document, reverting it to an older state. In some more advanced programs, such as graphic processing, undo will negate the last command done to the file being edited. With the possibility of undo, users can explore and work without fear of making mistakes, because they can easily be undone.

Gypsy was the first document preparation system based on a mouse and graphical user interface to take advantage of those technologies to virtually eliminate modes. Its operation would be familiar to any user of a modern personal computer. It was the second WYSIWYG document preparation program, a successor to the Bravo on the Xerox Alto personal computer.

GNU Readline is a software library that provides in-line editing and history capabilities for interactive programs with a command-line interface, such as Bash. It is currently maintained by Chet Ramey as part of the GNU Project.

<span class="mw-page-title-main">Esc key</span> Computer key

On computer keyboards, the Esc keyEsc is a key used to generate the escape character. The escape character, when sent from the keyboard to a computer, often is interpreted by software as "stop", "cancel" or "exit", and when sent from the computer to an external device marks the beginning of an escape sequence to specify operating modes or characteristics generally.

In user interface design, a mode is a distinct setting within a computer program or any physical machine interface, in which the same user input will produce perceived results different from those that it would in other settings. Modal interface components include the Caps lock and Insert keys on the standard computer keyboard, both of which typically put the user's typing into a different mode after being pressed, then return it to the regular mode after being re-pressed.

<span class="mw-page-title-main">Menu bar</span> Graphical control element

A menu bar is a graphical control element which contains drop-down menus.

In computing, a keyboard shortcut is a sequence or combination of keystrokes on a computer keyboard which invokes commands in software.

Control-Y is a common computer command. It is generated by holding Ctrl and pressing the Y key on most computer keyboards.

In computing, Control-V is a key stroke with a variety of uses including generation of a control character in ASCII code, also known as the synchronous idle (SYN) character. The key stroke is generated by typing Ctrl+V. On MacOS based systems usually ⌘ Cmd+V is used instead.

In computing, control-\ is a control character in ASCII code and the Basic Latin code block of Unicode, also known as the file separator or field separator (FS) character. It is generated by pressing the \ key while holding down the Ctrl key on a computer keyboard, and has the decimal value 28. It is the highest-level of the four separators in the ASCII C0 and C1 control codes; the others are control-], control-^, and control-_. It was one of eight codes reserved as separators in the 1963 version of the ASCII standard; these were reduced to four separators in a 1965 revision of the standard.

Super key (❖) is an alternative name for what is commonly labelled as the Windows key or Command key on modern keyboards, typically bound and handled as such by Linux and BSD operating systems and software today.

Control-Alt-Delete is a computer keyboard command on IBM PC compatible computers, invoked by pressing the Delete key while holding the Control and Alt keys: Ctrl+Alt+Delete. The function of the key combination differs depending on the context but it generally interrupts or facilitates interrupting a function. For instance, in pre-boot environment or in MS-DOS, Windows 3.0 and earlier versions of Windows or OS/2, the key combination reboots the computer. Starting with Windows 95, the key combination invokes a task manager or security related component that facilitates ending a Windows session or killing a frozen application.

References

  1. "Why Ctrl+v for Paste?". control+C and control+V to do ... copy and paste
  2. "A Buffer Overflow Exploit Against the DameWare Remote Control software". December 19, 2003. Archived from the original on July 24, 2020. Retrieved January 23, 2020. As soon as the command shell is closed with a control-c combination ...
  3. By (2021-01-20). "The Origin Of Cut, Copy, And Paste". Hackaday. Retrieved 2021-06-22.
  4. Origins of the Apple Human Interface, archived from the original on 2021-12-17, retrieved 2021-06-22
  5. Tesler, Larry (2012-07-01). "A personal history of modeless text editing and cut/copy-paste". Interactions. 19 (4): 70–75. doi:10.1145/2212877.2212896. ISSN   1072-5520. S2CID   21399421.