Scroll Lock

From HandWiki
Short description: Computer key

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

Scroll Lock (⤓ or ⇳) 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.[1][2]

The key is not frequently used, and therefore some reduced or specialized keyboards lack altogether.

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

Function

Window scrolling

The key was meant to lock all scrolling techniques, and is a vestige of the original IBM PC keyboard. In the original design, was intended to modify the behavior of the arrow keys. When the mode was on, the arrow keys would scroll the contents of a text window instead of moving the cursor.[1][2] In this usage, 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 is rare. Modern programs honoring this behavior include IBM Lotus Notes, Forté Agent, Image-Line FL Studio,[3] Renoise, Cakewalk by BandLab, Microsoft Excel, Microsoft Project,[4] LibreOffice Calc, and occasionally[citation needed] Microsoft Word.

Some text editors (such as Notepad++, Microsoft Visual Studio) exhibit similar behavior when the arrow keys are used with pressed.

Most GUI environments neglect , 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, + 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 . 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 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 become blocked at the write syscall when too much data prevented from reaching the terminal caused the tty's output queue to become full and the tty file descriptor is not using non-blocking I/O. When 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 , (DC3 in ASCII) and (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 hardwares.

The behavior should be distinguished from pressing the Pause key during POST or under DOS, which, by default, has the effect of temporarily halting the running process.

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

Boot diagnostics

In Multiuser DOS, System Manager, and REAL/32, activating 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.[6] Automatic scrolling is suspended for as long as remains activated.[7]

DR-DOS 7.02 and higher provides a CONFIG.SYS directive named SCROLLOCK=ON|OFF to change the Scroll Lock status on the fly.[6] Activating during boot will enter a DIAG mode as well, wherein some special drivers may display more verbose messages,[6] 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 / single-stepping modes for as long as is active.[6]

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 key and tap the key twice to trigger a Blue Screen of Death.[8][9]

In Microsoft Visual Basic 5.0 and 6.0, pauses the running program in the integrated development environment, as does its alias .

Copy and paste

In conjunction with the alternative DOS keyboard and console drivers FreeKEYB and K3PLUS, also served as part of a copy & paste facility between applications. Compared to the standard keyboard driver KEYB these drivers offered several extensions including an extended keystroke buffer with key stacking facility, macro recorder, and a second cursor called CopyCursor, which could be invoked on demand (by default on pressing or the middle mouse button) and freely moved 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 (or the left mouse button) the characters under the CopyCursor could be stuffed, one after another, into the keyboard buffer, from where they would 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 would move to the next screen position after each (or backwards with each ). Normal keyboard input was still possible while the CopyCursor was enabled, and the user could switch between the two cursors by toggling the hotkey again. Pressing or would exit the CopyCursor, so that, on its next invocation, it would show up at the position of the standard cursor again rather than at its previous location. If the screen contents were scrolled, the position of the CopyCursor would move accordingly until reaching the display limits. With activated, keypresses would still reach the normal keystroke buffer, while CopyCursor input would be stacked up internally for later use in a second queue, dynamically maintained within the extended keystroke buffer. Thereby, it was possible to "collect" selected screen output from different programs and spool out the data much later while within yet another application by toggling off again. It was also possible to use this as input into the macro recorder for later use as scrap macro. Since this was an integral part of these keyboard drivers, it was fully transparent to running software and therefore worked with virtually any DOS programs, including at the command prompt, temporary shelled programs, and task switchers.[10][11][12]

Other uses

IBM PC documentation called 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".[13]

The indicator light is sometimes used for other purposes such as a keyboard layout indicator[14][15] in some Linux distributions or other applications,[16] 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 which lack an OSD, switch to the input corresponding to the number key pressed after Scroll Lock, or in the case of some 2-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

Some laptops and keyboards do not have a physical key.[17] Some of these have a second function on another key that acts as if a key was pressed. Some common methods are:

  • or on certain Dell laptops.[18]
  • or on certain Lenovo laptops.
  • on certain HP laptops.
  • on Windows.

Another way to press the 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.[19]

See also

References

  1. 1.0 1.1 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."
  2. 2.0 2.1 IBM Personal Computer Technical Reference (Revised ed.). IBM Corporation. March 1983. 
  3. "Toolbar". https://www.image-line.com/fl-studio-learning/fl-studio-online-manual/html/toolbar_panels.htm. 
  4. "Accessibility limitations in Project". https://support.office.com/en-us/article/Accessibility-in-Microsoft-Project-079E2132-7AD5-4FC5-B9F7-DEE08F728730. 
  5. "Linux 5.9 Dropping Soft Scrollback Support From FB + VGA Console Code" (in en). https://www.phoronix.com/news/Linux-5.9-Drops-Soft-Scrollback. 
  6. 6.0 6.1 6.2 6.3 "Caldera OpenDOS 7.01/7.02 Update Alpha 3 IBMBIO.COM README.TXT". 1997-10-02. http://www.uni-bonn.de/~uzs180/download/ibmbioa3.zip.  [1]
  7. CCI Multiuser DOS 7.22 GOLD Online Documentation. Concurrent Controls, Inc. (CCI). 1997-02-10. HELP.HLP. 
  8. "Windows feature lets you generate a memory dump file using the keyboard". Microsoft Corporation. http://support.microsoft.com/kb/244139. 
  9. "Sean Daily, Tricks & Traps: Daily Answers". November 2000. https://technet.microsoft.com/library/cc722915.aspx. 
  10. (in de) K3PLUS v6 - Der ultimative Ersatz für den DOS-Standard-Tastaturtreiber KEYB GR (r49-v6.21 ed.), 1995-05-10  (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.)
  11. FreeKEYB - Enhanced DOS keyboard and console driver (v6.5 ed.), 1997-10-13  [2] (NB. FreeKEYB is a Unicode-based dynamically configurable successor of K3PLUS supporting most keyboard layouts, code pages, and country codes.)
  12. FreeKEYB - Advanced international DOS keyboard and console driver (v7 preliminary ed.), 2006-01-16 
  13. "Key Tronic's Soft Touch". PC Magazine: 347. January 1983. https://books.google.com/books?id=vy3cBZkjbZgC&pg=RA3-PA347. Retrieved 2013-10-21. 
  14. 11.JPG (การใช้งาน Ubuntu | SAMUTSAKHON FOUNDATION)
  15. "Keyboard Layout Options, Keyboard Preferences". Desktop User Guide - GNOME Library. http://library.gnome.org/users/user-guide/2.32/prefs-keyboard.html.en#prefs-keyboard-layoutoptions. 
  16. "Illuminated Keyboard Hack". Kipkay (via Instructables). 2008-05-30. http://www.instructables.com/id/Illuminated-Keyboard-Hack/. "Using the Scroll Lock key for illuminating your keyboard" 
  17. "Keyboard — General Discussion". Logitech. 2008-08-28. http://forums.logitech.com/logitech/board/message?board.id=general&message.id=11846#M11846. "This keyboard does not have a Scroll Lock key" 
  18. "Dell Inspiron 17 specification". http://cdn.cnetcontent.com/0b/87/0b875d86-4bdc-4b39-a6a0-fe922d9b71a1.pdf#page=18. 
  19. "Use the On-Screen Keyboard (OSK) to type". http://windows.microsoft.com/en-AU/windows-8/type-with-the-on-screen-keyboard. 

External links