Control-Z

Control+Z is a control character in ASCII code. It is commonly used as a substitute (SUB) character. It is perhaps best known as the keyboard shortcut in Windows applications for the undo command. It is also used to signal an end-of-file on some operating systems.

Control+Z is not a printable character but a code for control purposes; however it is sometimes rendered by two characters as ^Z. It is generated by holding down the Ctrl key while pressing the Z key on a computer keyboard.[1]

In many GUIs and applications Control+Z can be used to undo the last action. In many applications earlier actions than the last one can also be undone by pressing Control+Z multiple times. Control+Z was one of a handful of keyboard sequences chosen by the program designers at Xerox PARC to control text editing. Presumably these particular keystrokes were chosen because of their location on a standard QWERTY keyboard, since the Z (undo), X (cut), C (copy), and V (paste) keys are located together at the left end of the bottom row of the standard QWERTY keyboard.

In some operating systems, Control+Z is used to signal an end-of-file, and thus known as the EOF character (more accurately: the EOF control code), when typing at a terminal, terminal emulator, MS-DOS command line, or Win32 console. Early DEC operating systems used this convention, which was borrowed by CP/M, and was later in turn borrowed and continued in the MS-DOS and Microsoft Windows operating systems.

On Unix-like systems, Control+Z is the most common default keyboard mapping for the key sequence that suspends a process.[2] When entered by a user at their computer terminal, the currently running foreground process is sent a "terminal stop" (SIGTSTP) signal, which generally causes the process to suspend its execution. The user can later continue the process execution by using the "foreground" command (fg) or the "background" command (bg).

Representation

See also

References

  1. "Keyboard shortcuts for Windows". Microsoft Support. Microsoft. Retrieved 2 June 2012.
  2. "Quick Reference: Unix Commands". IT Connect. University of Washington. Retrieved 2 June 2012.
This article is issued from Wikipedia - version of the Wednesday, February 17, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.