Scroll Lock

From Wikipedia, the free encyclopedia
(Redirected from Scroll lock)

Template:Short description Template:DMCA Template:DMCA

The scroll-lock key with an activated indicator light on an IBM Model M keyboard

Scroll Lock or ScrLk[1] (sometimes notated [2] or [3]) is a lock key (typically with an associated status light) on most IBM-compatible computer keyboards. Depending on the operating system, it may be used for different purposes, and applications may assign functions to the key or change their behavior depending on its toggling state.[4][5] The key is not frequently used, and therefore some reduced or specialized keyboards lack Script error: No such module "key". altogether.

Pressing Script error: No such module "key". performs the same function as pressing Script error: No such module "key".. This behavior is a remnant of the original IBM PC keyboards, which did not have a dedicated Script error: No such module "key". key. Instead, they assigned the Pause function to Script error: No such module "key". and the Break function to Script error: No such module "key"..

Function

Window scrolling

The Script error: No such module "key". key is meant to lock all scrolling techniques and is a vestige of the original IBM PC keyboard. In its original design, Script error: No such module "key". was intended to modify the behavior of the arrow keys. When the Script error: No such module "key". mode is on, the arrow keys scroll the contents of a text window instead of moving the cursor.[4][5] In this usage, Script error: No such module "key". is a toggling lock key like Num Lock or Caps Lock, which have a state that persists after the key is released.

Today, this particular use of Script error: No such module "key". is rare. Modern programs honoring this behavior include Microsoft Excel, Microsoft Project,[6] Image-Line FL Studio,[7] IBM Lotus Notes, Forté Agent, Renoise, Cakewalk by BandLab, and LibreOffice Calc.

Some text editors (such as Notepad++, Microsoft Visual Studio) exhibit similar behavior when the arrow keys are used with Script error: No such module "key". pressed.

Most GUI environments neglect Script error: No such module "key"., which means scrolling must be accomplished with a mouse, using means such as scrollbars or scroll wheels, or an "autoscroll" feature activated by the middle mouse button (which may be part of the scroll wheel). In some instances, Script error: No such module "key".+Script error: No such module "key". in conjunction with the arrow keys can enable scrolling.

Some web browsers including Google Chrome, Firefox, and Internet Explorer support a caret browsing mode which can be toggled by Script error: No such module "key".. While the window scrolling behavior with caret navigation disabled (the default) is similar to that suggested for Scroll Lock, enabling caret navigation will enable a cursor scrolling behavior as if Scroll Lock were disabled.

Console scrolling

Pressing the Script error: No such module "key". key in the Linux console while the text is scrolling through the screen freezes the console output (but not input) during which no further text is sent to the screen, while the program continues running as usual — or becomes blocked at the Page Template:Mono/styles.css has no content.write syscall when too much data is prevented from reaching the terminal, causing the tty's output queue to become full if the tty file descriptor is not using non-blocking I/O. When Script error: No such module "key". is pressed again, the screen is unfrozen and all text generated during the freeze is displayed at once and the program continues to run normally. This allows the user to pause the display and read long log messages that scroll through the screen too quickly to read, such as when the system is booting up (provided the keyboard driver has already been loaded). Unless configured otherwise or in raw mode, Script error: No such module "key". (DC3 in ASCII) and Script error: No such module "key". (DC1 in ASCII) can be used instead of Scroll Lock in Unix-like systems to freeze and unfreeze the tty output respectively.

This behavior emulates the Hold Screen key or similar flow control mechanisms on computer terminal hardware.

On the FreeBSD system console, the Script error: No such module "key". key not only pauses output, but additionally enables scrolling: after pressing Script error: No such module "key"., one can use Script error: No such module "key". and Script error: No such module "key". to scroll up or down. Pressing Script error: No such module "key". again disables this mode and moves back to the bottom of the output. The Linux console implemented this behaviour by using Script error: No such module "key". and Script error: No such module "key"., not requiring Script error: No such module "key". to be active; this behavior has been removed due to a vulnerability (CVE-2020-14390).[8] The NetBSD console can be scrolled either with Script error: No such module "key"./ Script error: No such module "key". or by pressing Script error: No such module "key". then Script error: No such module "key"./Script error: No such module "key". .

Boot diagnostics

In Multiuser DOS, System Manager, and REAL/32, activating Script error: No such module "key". during boot will always enter a special diagnostic mode, where the operating system and loaded device drivers will display detailed status and debugging information about themselves and their interaction with the operating system, sometimes up to several screenfulls per loaded driver.[9] Automatic scrolling is suspended for as long as Script error: No such module "key". remains activated.[10]

DR-DOS 7.02 and higher provides a CONFIG.SYS directive named SCROLLOCK=ON|OFF to change the Scroll Lock status on the fly.[9] Activating Script error: No such module "key". during boot will enter a DIAG mode as well, wherein some special drivers may display more verbose messages,[9] but in contrast to the situation under the Multiuser DOS family normal DOS drivers do not typically display additional information. The operating system, however, will temporarily suspend any automatic timeouts (TIMEOUT=<seconds>,<character>,<switch>) in CONFIG.SYS trace (TRACE=ON|OFF) and Script error: No such module "key"./Script error: No such module "key". single-stepping modes for as long as Script error: No such module "key". is active.[9]

Debugging

In the Microsoft Windows NT family starting with Windows 2000, a debugging feature can be enabled, that allows the user to manually crash the system, generating a memory dump for analysis of the current state of the operating system. This can be accomplished by setting the REG_DWORD registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters\CrashOnCtrlScroll to 1. Once set, the user can hold the Script error: No such module "key". key and tap the Script error: No such module "key". key twice to trigger a Blue Screen of Death.[11][12]

In Microsoft Visual Basic 5.0 and 6.0, Script error: No such module "key". pauses the running program in the integrated development environment, as does its alias Script error: No such module "key"..

Copy and paste

In conjunction with the alternative DOS keyboard and console drivers FreeKEYB and K3PLUS, Script error: No such module "key". also serves as part of a copy & paste facility between applications. Compared to the standard keyboard driver KEYB these drivers offer several extensions including an extended keystroke buffer with key stacking facility, macro recorder, and a second cursor called CopyCursor, which can be invoked on demand (by default on pressing Script error: No such module "key". or the middle mouse button) and freely move on the screen using the cursor keys or the mouse, even outside the area reachable by the standard cursor in the running application. Once invoked, pressing Script error: No such module "key". (or the left mouse button) the characters under the CopyCursor can be stuffed, one after another, into the keyboard buffer, from where they will be read by the running application as emulated key (or Alt Numpad) input, thereby typically showing up at the location of the standard cursor. The CopyCursor will move to the next screen position after each Script error: No such module "key". (or backwards with each Script error: No such module "key".). Normal keyboard input is possible while the CopyCursor is enabled, and the user can switch between the two cursors by toggling the Script error: No such module "key". hotkey again. Pressing Script error: No such module "key". or Script error: No such module "key". exits the CopyCursor, so that, on its next invocation, it will show up at the position of the standard cursor again rather than at its previous location. If the screen contents are scrolled, the position of the CopyCursor will move accordingly until reaching the display limits. With Script error: No such module "key". activated, keypresses will still reach the normal keystroke buffer, while CopyCursor input will be stacked up internally for later use in a second queue, dynamically maintained within the extended keystroke buffer. Thereby, it is possible to "collect" selected screen output from different programs and spool out the data much later while within yet another application by toggling Script error: No such module "key". off again. It is also possible to use this as input into the macro recorder for later use as scrap macro. Since this is an integral part of these keyboard drivers, it is fully transparent to running software and therefore works with virtually any DOS program, including at the command prompt, temporary shelled programs, and task switchers.[13][14][15]

Other uses

IBM PC documentation called Script error: No such module "key". an "inactive key". When PC Magazine asked an executive of keyboard manufacturer Key Tronic about the key's purpose in a 1983 interview, he replied "I don't know, but we put it on ours, too."[16]

The indicator light is sometimes used for other purposes such as a keyboard layout indicator[17][18] in some Linux distributions or other applications,[19] because doing so is less likely to cause problems than manipulating other keys/lights.

Keyboard, video, mouse switches (KVM) often use the Scroll Lock key on the keyboard connected to the KVM switch for selecting between computers. On KVM switches with on-screen display (OSD), a "double click" of the Scroll Lock key often brings up the OSD, allowing the user to select the desired computer from a list or access the configuration menu of the KVM. Some models, especially those without an OSD, switch to the input corresponding to the number key pressed after Scroll Lock, or in the case of some two-port switches, the up and down arrow keys. Simple models with only two or four inputs may immediately switch to the next input following a double press of the Scroll Lock key.

Scroll Lock on keyboards without a Scroll Lock key

Laptops and keyboards without a physical Script error: No such module "key". key[20] may have a second function on another key that acts as if a Script error: No such module "key". key is activated.

Some common methods are:

  • Script error: No such module "key". or Script error: No such module "key". on certain Dell laptops.[21]
  • Script error: No such module "key". or Script error: No such module "key". on certain Lenovo laptops.
  • Script error: No such module "key". on certain HP laptops.
  • Script error: No such module "key". on Windows.

Another way to press Script error: No such module "key". is to use an on-screen keyboard. In Windows 8 and later versions, it can be found in the "Windows Ease of Access" program group. This will provide access to an emulation of a standard 101/102-key keyboard.[22]

See also

References

  1. ^ Page Module:Citation/CS1/styles.css has no content."Turn off Scroll Lock - Microsoft Support". support.microsoft.com.
  2. ^ Graphic is seen enclosed in rounded rectangle on scroll lock key in photograph in Page Module:Citation/CS1/styles.css has no content."What Is Scroll Lock Key? [How to Turn It Off] - Alvaro Trigo's Blog". 2022-04-16.
  3. ^ Graphic is seen enclosed in rounded rectangle on scroll lock key in photograph in Page Module:Citation/CS1/styles.css has no content.Makvana, Mahesh (2022-08-13). "How to Turn Scroll Lock Off (or On) in Microsoft Excel". How-To Geek.
  4. ^ a b IBM: IBM PC User Manual. Page 5-20: "This key is interpreted by appropriate application programs as indicating that the use of the cursor-control keys should cause windowing over the text rather than cursor movement. Pressing the Scroll Lock key a second time reverses the action. The keyboard routine simply records the current shift state of the Scroll Lock key. It is the responsibility of the system or application program to perform the function."
  5. ^ a b Page Module:Citation/CS1/styles.css has no content.IBM Personal Computer Technical Reference (Revised ed.). IBM Corporation. March 1983.
  6. ^ Page Module:Citation/CS1/styles.css has no content."Accessibility limitations in Project". www.Microsoft.com.
  7. ^ Page Module:Citation/CS1/styles.css has no content."Toolbar". www.image-line.com. Retrieved 2023-09-08.
  8. ^ Page Module:Citation/CS1/styles.css has no content."Linux 5.9 Dropping Soft Scrollback Support From FB + VGA Console Code". www.phoronix.com. Retrieved 2022-12-22.
  9. ^ a b c d Page Module:Citation/CS1/styles.css has no content.Paul, Matthias R. (1997-10-02). "Caldera OpenDOS 7.01/7.02 Update Alpha 3 IBMBIO.COM README.TXT". Archived from the original on 2003-10-04. Retrieved 2009-03-29. [1]
  10. ^ Page Module:Citation/CS1/styles.css has no content.CCI Multiuser DOS 7.22 GOLD Online Documentation. Concurrent Controls, Inc. (CCI). 1997-02-10. HELP.HLP.
  11. ^ Page Module:Citation/CS1/styles.css has no content."Windows feature lets you generate a memory dump file using the keyboard". Microsoft Corporation. Retrieved 2011-09-25.
  12. ^ Page Module:Citation/CS1/styles.css has no content."Sean Daily, Tricks & Traps: Daily Answers". November 2000.
  13. ^ Page Module:Citation/CS1/styles.css has no content.Frinke, Axel C.; Paul, Matthias R. (1995-05-10) [1991], K3PLUS v6 - Der ultimative Ersatz für den DOS-Standard-Tastaturtreiber KEYB GR (User Manual) (in Deutsch) (r49-v6.21 ed.) (NB. K3PLUS was an extended keyboard driver for DOS widely distributed in Germany at its time, with adaptations to a handful of other European languages available. It did support a sub-set of the FreeKEYB features already. K3PLUS.DOC is part of the K3P621P2.ZIP distribution package.)
  14. ^ Page Module:Citation/CS1/styles.css has no content.Paul, Matthias R.; Frinke, Axel C. (1997-10-13) [1991], FreeKEYB - Enhanced DOS keyboard and console driver (User Manual) (v6.5 ed.) [2] (NB. FreeKEYB is a Unicode-based dynamically configurable successor of K3PLUS supporting most keyboard layouts, code pages, and country codes.)
  15. ^ Page Module:Citation/CS1/styles.css has no content.Paul, Matthias R.; Frinke, Axel C. (2006-01-16), FreeKEYB - Advanced international DOS keyboard and console driver (User Manual) (v7 preliminary ed.)
  16. ^ Page Module:Citation/CS1/styles.css has no content.Sandler, Corey (January 1983). "Key Tronic's Soft Touch". PC Magazine: 347. Retrieved 2013-10-21.
  17. ^ 11.JPG (การใช้งาน Ubuntu | SAMUTSAKHON FOUNDATION)
  18. ^ Page Module:Citation/CS1/styles.css has no content."Keyboard Layout Options, Keyboard Preferences". Desktop User Guide - GNOME Library.
  19. ^ Page Module:Citation/CS1/styles.css has no content."Illuminated Keyboard Hack". Kipkay (via Instructables). 2008-05-30. Retrieved 2011-07-25. Using the Scroll Lock key for illuminating your keyboard
  20. ^ Page Module:Citation/CS1/styles.css has no content."Keyboard — General Discussion". Logitech. 2008-08-28. Retrieved 2008-11-26. This keyboard does not have a Scroll Lock key
  21. ^ Page Module:Citation/CS1/styles.css has no content."Dell Inspiron 17 specification" (PDF).
  22. ^ Page Module:Citation/CS1/styles.css has no content."Use the On-Screen Keyboard (OSK) to type".

Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.