Break key

Break key
Break/Pause key on PC keyboard

The origins of the break key on a computer keyboard go back to telegraph practices. A standard telegraph key has a built-in knife switch that can be used to short the key's contacts. When the key was not in use, that switch was kept closed, so that a signal was continually sent. If that steady-state signal was interrupted, it indicated one of two things: either the operator was about to start transmitting, or something else had happened to break the connection — such as a physical break in the telegraph line.

As the teleprinter came into use, a key was created that would temporarily interrupt the communications line, allowing this practice to continue. When this occurred, the receiving teleprinter mechanism would activate but not print characters (it was typing the non-printing DEL character repeatedly). The noise got the operator's attention.

Time-sharing computers connected to modems could recognize the break because the DEL characters received had "bad parity." This was used to generate an interrupt, allow login, or stop a running program.

On personal computers, the Break key can be used by software in several different ways, such as to switch between multiple login sessions, to terminate a program, or to interrupt a modem connection. On a BBC Micro computer, the Break key generates an interrupt which would normally cause a warm restart of the computer. A cold restart is triggered by typing Ctrl+break. If a DFS ROM is installed, Shift+break will cause the computer to search for and load a file called !boot on the floppy disk in drive 0.

On the Sinclair ZX80 and ZX81 computers, the Break is accessed by pressing Space. On the Sinclair ZX Spectrum it is accessed by Shift and Space. The Spectrum+ and later computers have a dedicated Break key. It does not trigger an interrupt but will halt any running BASIC program, or terminate the loading or saving of data to cassette tape. An interrupted BASIC program can usually be resumed with the CONTINUE command. The Sinclair QL computer, without a break key, maps the function to Ctrl+Space. On many modern PCs, Pause interrupts screen output by BIOS until another key is pressed. This is effective during boot in text mode and in a DOS box in Windows safe mode with 50 lines. On early keyboards without a Pause key (before the introduction of 101-key keyboards) the Pause function was assigned to Ctrl+NumLock, and the Break function to Ctrl+ScrLock; these key-combinations still work with most programs, even on modern PCs with modern keyboards. Pressing the dedicated Pause key on 101-key keyboards sends the same scancodes as pressing Ctrl, then NumLock, then releasing them in the reverse order would do; additionally, an e1hex prefix is sent which enables 101-key aware software to discern the two situations, while older software usually just ignores the prefix. The Pause key is different from all other keys in that it sends no scancodes at all on release; therefore it is not possible for any software to determine whether this key is being held down. [1]

On modern keyboards, the break key is usually labeled Pause/Break. In most Windows environments, the key combination Windows key+Pause brings up the system properties. Compact and notebook keyboards often have the Pause/Break key mapped to a function command: for example Ctrl+Fn+F11.

Usage for breaking the program's execution

While both Ctrl+Break and Ctrl+C combination are commonly implemented as a way of breaking the execution of a console application, they are also used for similar effect in integrated development environments.[2][3] Although these two are often considered interchangeable,[4] compilers and execution environments usually assign different signals to these.[5] Additionally, in some kernels (e.g. miscellaneous DOS variants) Ctrl+C is detected only at the time OS tries reading from a keyboard buffer and only if it's the only key sequence in the buffer,[6][7] while Ctrl+Break is often translated instantly (e.g. by INT 1Bh under DOS). Because of this, Ctrl+Break is usually a more effective choice under these OSes; sensitivity for these two combinations can be enhanced by the BREAK=ON CONFIG.SYS statement.

References

  1. ^ "Keyboard 101- and 102-Key". PS/2 Hardware Interface Technical Reference. IBM. October 1990. p. 19. http://www.mcamafia.de/pdf/ibm_hitrc11.pdf. "Except for the Pause key, all keys are make/break." 
  2. ^ "CTRL+C (Break)". Msdn.microsoft.com. 2010-03-30. http://msdn.microsoft.com/en-us/library/ff540312.aspx. Retrieved 2010-10-22. 
  3. ^ "Debug Break". Msdn.microsoft.com. 2010-03-30. http://msdn.microsoft.com/en-us/library/ff541727.aspx. Retrieved 2010-10-22. 
  4. ^ "Ctrl-Break definition of Ctrl-Break in the Free Online Encyclopedia". Encyclopedia2.thefreedictionary.com. http://encyclopedia2.thefreedictionary.com/Ctrl-Break. Retrieved 2010-10-22. 
  5. ^ http://www.gnu.org/software/emacs/windows/ntemacs/discuss/subproc-ctrl-c
  6. ^ "Vim documentation: vim online". Vim.org. http://www.vim.org/htmldoc/os_dos.html. Retrieved 2010-10-22. 
  7. ^ "ClipX — DOS 5.0 Ref. - int 23h ctrl-c handler". Ousob.com. http://www.ousob.com/ng/dos5/ng27979.php. Retrieved 2010-10-22. 

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Break key — key on certain keyboards which is used to stop the current computer operation …   English contemporary dictionary

  • Break — To break is the act of damaging something.Break may also refer to: * Break (music), a percussion interlude or instrumental solo within a longer work of music * Break key, a special key on computer keyboards * Break or Break shot, the first shot… …   Wikipedia

  • break — vb Break, crack, burst, bust, snap, shatter, shiver are comparable as general terms meaning fundamentally to come apart or cause to come apart. Break basically implies the operation of a stress or strain that will cause a rupture, a fracture, a… …   New Dictionary of Synonyms

  • Break The Ice — Single par Britney Spears extrait de l’album Blackout Face B Everybody Sortie 7 Avril 2008 …   Wikipédia en Français

  • Break Machine — was the name of a 1980s rap act fronted by Keith Rodgers and produced by Jacques Morali and Henri Belolo, the team behind the Village People.Rodgers was a musician and presenter of a rap radio show on the New York station WHBI 105.9. In 1981, he… …   Wikipedia

  • Break-circuit — Break cir cuit, n. (Elec.) A key or other device for breaking an electrical circuit. [1913 Webster] …   The Collaborative International Dictionary of English

  • Key size — In cryptography, key size or key length is the size measured in bits[1] of the key used in a cryptographic algorithm (such as a cipher). An algorithm s key length is distinct from its cryptographic security, which is a logarithmic measure of the… …   Wikipedia

  • Key Stage — A Key Stage is a stage of the state education system in the UK and Gibraltar setting the educational knowledge expected of students at various ages.The stages are as follows: * Key Stage 0: Nursery and reception years (3 5 years old). More… …   Wikipedia

  • Break the Ice — Infobox Single Name = Break the Ice Artist = Britney Spears from Album = Blackout B side = Everybody Released = March 28, 2008 (see release history) Format = Airplay, CD single, digital download, maxi single, 5 single, 12 single Genre =… …   Wikipedia

  • break — breakable, adj. breakableness, n. breakably, adv. breakless, adj. /brayk/, v., broke or (Archaic) brake; broken or (Archaic) broke; breaking; n. v.t …   Universalium

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”