Jump to content

Keyboard interrupt

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SmackBot (talk | contribs) at 14:53, 14 November 2007 (Standard headings &/or gen fixes., Replaced: =External link= → =External links= using AWB). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Keyboard interrupt has two distinct, but related, meanings:

  • For high level software, it is a special condition (often implemented as an error code or exception), usually generated by the keyboard. The key combination used is often Control-C (for 'cancel'). This is used in some programming languages to allow breaking out of an infinite loop or overlong program at the command prompt without being forced to kill the entire process.
  • For low level software and hardware a keyboard interrupt is an interrupt that is generated when any key is pressed, not just a special escape combination, to allow the CPU to handle the input. This may lead to the propagation of a high level keyboard interrupt.