Slashdot Mirror


What's A 'Scroll Lock' And Why Is It On My Keyboard?

Jeff Bauer writes "Today's article in The Straight Dope explains all the weird keys that come with standard PC keyboards. Now if someone could just explain what the 'Alt Graph' key does on my Sun keyboard, enlightement would be at hand ..."

27 of 866 comments (clear)

  1. real application! by Wakkow · · Score: 5, Funny

    How you know it's TRUE Straight Dope:

    "In command-line environments such as DOS, the pipe symbol can add functionality to a DOS command. The way I most frequently use it is when doing a directory listing (DIR) on a large directory with hundreds of files. Say I type "DIR" at the command prompt like so:

    C:\Una\Lesbian Porn>DIR

    . . . then the 22,000 files in that directory scroll past so fast I can't see their names. However, if I apply the pipe function at the command prompt like this:

    C:\Una\Lesbian Porn>DIR | more

    . . . then the display will show me one screen of files at a time, with a "More" at the bottom. To display the next screen of files, I hit any key to continue, until all of the files in the directory have been listed (or I break, by pressing Ctrl-C). This is similar to using the "/p" modifier, such as "DIR /p," to display directory information a page at a time."


    Not only do they explain it, but give a real life situation where it'd be useful! It's always hard to sort through 22,000 lesbian porn pics.

    1. Re:real application! by r_glen · · Score: 5, Funny

      Sorting through them is easy... it's VIEWING them in DOS that gets tricky.

    2. Re:real application! by mattACK · · Score: 5, Interesting
      Also, in WinXP or higher, you can pipe text into the copy buffer. I use this all the time.
      type reallybigfile.txt | clip
      More stupid cmd tricks -
      for /r c:\ %i in (*.jpg) do @echo %i %~ni %~di

      -OR-

      mountvol c: /d
      Don't try the last one unless you save your open files. And yes, the system will let you unmount the system drive.
      --


      "My God, this must be a truly remarkable corn chip, to be so widely and confidently touted."
    3. Re:real application! by treat · · Score: 5, Funny
      Also, in WinXP or higher, you can pipe text into the copy buffer. I use this all the time.

      Can Linux do this? If not, Windows is better than Linux.

    4. Re:real application! by shird · · Score: 5, Informative

      'clip' is not a program which comes default installed with WinXP. Try it and see.

      You must have it installed from somewhere else, or as part of the admin pack or whatever. Its obvioulsy just a program which puts the stdin input into the clipboard, pretty useful, but not included by default.

      --
      I.O.U One Sig.
    5. Re:real application! by rwuest · · Score: 5, Informative

      get xclip http://people.debian.org/~kims/xclip/, install, then

      $ ls | xclip -i

      does what you'd expect.

    6. Re:real application! by SEE · · Score: 5, Informative

      Correct. clip isn't built in.

      Clip is one of the utilities from http://www.cmdtools.com/ .

  2. Windows Key by Empty_One · · Score: 5, Funny

    I've been wondering the same thing about my windows key.

    1. Re: Windows Key by CognitiveFusion · · Score: 5, Funny

      We have a old programmer at work that uses keyboard macros, and frequently uses the windows key to access the start menu and use the key macros (win + e: explorer; win + r: run prompt; etc.) One day another co-worker snuck into his office during lunch and remapped the windows key to reboot every time he hit it. This had the unfortunate side effect of producing a loud explitive every 10-15 minutes.

      --
      Fools ignore complexity; pragmatists suffer it; experts avoid it; geniuses remove it. ~A. Perlis
  3. An old one by Anonymous Coward · · Score: 5, Funny

    <> !*''#
    ^"`$$-
    !*=@$_
    %*<> ~#4
    &[]../
    |{,,SYSTEM HALTED

    Waka waka bang splat tick tick hash,
    Caret quote back-tick dollar dollar dash,
    Bang splat equal at dollar under-score,
    Percent splat waka waka tilde number four,
    Ampersand bracket bracket dot dot slash,
    Vertical-bar curly-bracket comma comma CRASH.

    1. Re:An old one by Vengie · · Score: 5, Funny

      ^<@<.@*
      }"_# |
      -@$&/_%
      !( @|=>
      ;`+$?^?
      ,#"~|)^G

      hat less at less point at star
      backbrace double base pound space bar
      dash at cash and slash base rate
      wow open tab at bar is great
      semi backquote plus cash huh DEL
      comma pound double tilde bar close BEL

      --
      When in doubt, parenthesize. At the very least it will let some poor schmuck bounce on the % key in vi. (Larry Wall)
    2. Re:An old one by SeanTobin · · Score: 5, Funny

      For about 10 seconds, I thought that was the greatest thing I had ever seen. Then I noticed it didn't begin with #!/usr/bin/perl and was bummed :(

      --
      Karma: SELECT `karma` FROM `users` WHERE `userid`=138474;
  4. Scroll Lock Key by ArkiMage · · Score: 5, Funny

    Very handy key.. I press it twice and my Linksys KVM switches to the other system. Does it do something else?

  5. Scroll lock is useful in Linux terminals by gotr00t · · Score: 5, Informative
    When using a TTY terminal in Linux, the scroll lock is an extremely useful key so that you can pause the output in order to read it. In most BIOS's, you can also press it to pause the info that it is giving you as well.

    Many people think that scroll lock is now useless, except in Microsoft Excel, but it does have a much more useful purpose, at least in Linux and perhaps BSD.

  6. Props! by Anonymous Coward · · Score: 5, Funny

    Whenever my lab partner does something good, I hit the props key. Sun machines are cool like that.

  7. The Light by metadatay · · Score: 5, Funny

    Something has to turn the Scroll Lock light on and off.

  8. Alt Graph on Sun-boxen ... by Hektor_Troy · · Score: 5, Informative

    The Danish keymap is the same on all PC's (and Sun Boxen as well), and we need Alt Graph to access the following characters:
    \@${[]}|~?

    Not sure about the US keymap, but I sure as hell wouldn't want to go without Alt Graph.

    --
    We do not live in the 21st century. We live in the 20 second century.
  9. Re:The ` key by vanza · · Score: 5, Funny

    Damn Slashdot, it filtered the accents on "tres" and "frequemment".

    --
    Marcelo Vanzin
  10. 15 fnc, 4 cmd, 9 movement, and 5 misc keys by fermion · · Score: 5, Interesting
    Some one tell me how we ended up three control keys. On Windows machines we have the window key, the control key, and the alt key. On Macs we have the Apple/Command/Flower key, the option/alt key and the control key. Of course, on most machines we have a ESC key, which is really there to escape out of, or switch, modes, but has been given other weird functions such as escaping out of application or whatever.

    In fact the alt/option key is really just a replacement for the escape key, except one has to be dexterous enough to hold two keys down at once to use it.

    And lets not even get started with delete/backspace key and the del key.

    Just looking at my keyboard, which has as nearly as many function/command keys as character keys, I wonder if bloat stated with the keyboard and expanded into the software. I mean it looks cool and hi tech and all, but who needs to look hi tech in the 21st century?

    --
    "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
    1. Re:15 fnc, 4 cmd, 9 movement, and 5 misc keys by freshmkr · · Score: 5, Interesting

      Please, that's nothing. Check out this keyboard from an old Symbolics Lisp machine.

      Yeah, that's right. Wanna know what happens when you type Hyper-Super-Meta-Control-Symbol-Shift-Square? So do I...

      See also space-cadet keyboard.

  11. Obligatory... by jdreed1024 · · Score: 5, Funny
    Homer:
    [reading screen] "To Start Press Any Key". Where's the ANY key? I see Esk ["ESC"], Catarl ["CTRL"], and Pig-Up ["PGUP"]. There doesn't seem to be any ANY key. Woo! All this computer hacking is making me thirsty. I think I'll order a TAB. [presses TAB key] Awp...no time for that now, the computer's starting.

    Blatanly stolen from Simpsons episode 3f05.

    --
    There is no sig, there is only Zuul.
  12. I can't find by Anonymous Coward · · Score: 5, Funny

    The registration key. All my software keeps asking me for it...

  13. Re:Alt -escape by xanadu-xtroot.com · · Score: 5, Funny

    I think the windows key is just alt-esc or control esc or some such thing.

    You're right. The "Windows Key" (AKA Start Button) is CTRL+ESC. The "right-click" is SHIFT+F10. The "Task Manager" is CTRL+SHIFT+ESC. The "Boot a Real OS" is CTRL+ALT+DEL.

    --
    I'm not a prophet or a stone-age man,
    I'm just a mortal with potential of a super man.
  14. Re:The ` key by benjamindees · · Score: 5, Funny

    The first time I read that, I thought that by 'our languages' you meant bash. Time to go outside.

    --
    "I assumed blithely that there were no elves out there in the darkness"
  15. Xon/Xoff history lesson: blame microsoft by goombah99 · · Score: 5, Informative
    Since everyone hear has totally missed the boat I'll chime in. The concept of a Scoll lock is indeed alive and well today. Try the following on your Unix computer: run some command that spews text to the screen in a terminal window (e.g. fs_usage or du /) now while its scrolling type control-S. it scroll locks. Now type control-Q to resume the text output.

    this dates back to the teletype and is enshrined in the ascii alphabet as Xon and Xoff. Originally it was intended not as a scroll lock but as a way for a teletype or printer to not overflow its fixed hardware buffer. The communication baud rate could easily out pace the tele type printers print speed. when the hardware buffer was nearly full it would send an X-off (contol-s) to the sender to pause its communications. When the buffer was printed the teletype would send a X-on back to the sender to resume spewing.

    There was no need for scoll locking functionality on a teletype printer since you could just hold up the paper and look at it back as many lines as you wanted.

    but when dumb video terminals came along the terminals could print as fast as the data came in the X-on and X-off functions had little use as a communications protocol, but Now they were useful to humans as a scroll lock. they had at most 40 lines of text and once you scrolled off the top of the screen, you lost that line forever. There were no "windows" or "scroll bars". So you had your fingers poised over the contrl-s key to halt the text from flowing off the screen.

    finally along came the PC and Microsoft messed with all the unix converions in their VMS/CPM ripoff called dos: so you could not be sure that control-S would actually work. In part this was because DOS was not really multitasking. programs could take over the OS and capture all the interupts and put hooks directly into the keyboard handler. Since there were no Menus and the "alt" key had not come into its standard defintion yet, the control keys were premium realestate for programs to hook functions into.

    thus there was a need for another semaphore. So things like scroll lock and sysRequest, and print screen got added. So yes virgina you can blame MS for these keys as valuable male breasts or an appendix.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  16. Re:Losing the Insert key by Burdell · · Score: 5, Funny

    What's next to your home key?

    My car key, my office key, my desk key, ...

  17. True story by tmoertel · · Score: 5, Interesting
    About fifteen years ago while working for a defense contractor, I happened to be present while a DEC service technician was inspecting one of the many on-site Vaxen as part of a "preventative-maintenance" contract. This particular machine was running Ultrix, DEC's then-favored flavor of Unix, and the sysadmin and I were standing by while the inspection took place.

    At one point in the inspection, the technician had to monitor the machine from a boot-up state, and so he rebooted the machine. The only problem was, the machine didn't come back up. Instead, it hung early in the boot process, leaving the distinct impression on the observers that the technician had hosed up a perfectly good -- and very expensive -- minicomputer.

    Apparently, the same impression was left on the technician, because he started sweating. A lot. He tried rebooting the machine again, obviously unsure of what the hell he had done to land in his present, miserable condition and just as obviously wanting desperately to be released from it. The machine hung up again. More sweat. Another attempt. Same thing: Hang. Then he opened the case and peered inside. He was clearly grasping at straws. The sweat started to bead on his forehead.

    Eventually, after about fifteen minutes of increasingly distressing diagnostic procedures, consulting the LEDs, and hand wringing, he gave up: "You've got a bad motherboard. I'll have to call in for a swap." He half ran away from the uncomfortable scene to make his phone call.

    While he was gone, the sysadmin busted out laughing. Then he pointed at the keyboard on the console VT320. The Scroll Lock LED was lit. The sysadmin said that the technician must have hit it earlier and never took it off before rebooting. When the kernel tried to send boot-up messages to the console, the console wouldn't accept them, and so the kernel blocked, waiting for the Scroll Lock to be released!

    A few minutes later, the technician returned, looking only a bit less nervous. In his best it's-under-control voice: "Yeah, we'll have that new board out right away. No problem." The sysadmin's reply: "Great! I'm sure glad we have the preventative-maintenance contract, because I bet those boards are plenty expensive. I'd hate to pick up the tab for one of them." After a few precious moments of letting that thought sink in, the sysadmin "noticed" the scroll-lock situation: "Hey, isn't the scroll lock on? Let's just see what happens if I ..." He then tapped the keyboard.

    And the Vax booted right up.

    True.