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 ..."

127 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 dark-br · · Score: 2, Informative

      It's always hard to sort through 22,000 lesbian porn pics.

      Try "| sort | more" instead :)

    3. 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."
    4. 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.

    5. Re:real application! by NanoGator · · Score: 4, Funny

      "Can Linux do this?"

      No, it requires a mouse.

      --
      "Derp de derp."
    6. Re:real application! by Anonvmous+Coward · · Score: 2, Funny

      heheh. Man I hope the mods are in good humor today.

    7. Re:real application! by realdpk · · Score: 2, Informative

      # mkfifo booda
      # cat text > booda

      in another window:

      # cat booda > somefile

      voila

    8. Re:real application! by Darren.Moffat · · Score: 4, Insightful

      Linux - no it is a kernel and doesn't have a copy buffer ;-)

      Serious though, it depends on which distribution you use and what bits you have installed.

      WindowMaker comes with a command to do this.

      Openwindows (the XView stuff not the OLIT stuff) on SunOS came with a util to do this.

      Standard MIT X Windows also comes with a cut and paste history which lets you "go both ways" between files and the "cut buffer(s)".

    9. 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.
    10. Re:real application! by WatertonMan · · Score: 4, Informative

      In OSX it is ls | pbcopy

    11. Re:real application! by TheRealSlimShady · · Score: 4, Funny

      Surely if it's lesbian porn theres no head, only lots of tail?

    12. 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.

    13. 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/ .

    14. Re:real application! by rolocroz · · Score: 3, Informative

      And, as you might expect, pbpaste lets you access what's currently on the clipboard.

      --

      I meta-mod all positive moderation Unfair, because it's abuse of the system.

    15. Re:real application! by Siriaan · · Score: 4, Funny

      It's always hard to sort through 22,000 lesbian porn pics.

      You're new here, aren't you?

    16. Re:real application! by revmoo · · Score: 2, Informative
      Also, in WinXP or higher, you can pipe text into the copy buffer. I use this all the time.
      type reallybigfile.txt | clip


      Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\revmoo>echo moo | clip

      'clip' is not recognized as an internal or external command, operable program or batch file.
      Care to elaborate?
      --
      I would expect such blatant racism on Fark, but on Slashdot? Mods please ban this asshole.
    17. Re:real application! by pebs · · Score: 2, Funny

      Uh, no.. We're talking about unmounting drives that are in use here. So try it:

      # umount /dev/hda1
      umount: /: device is busy
      umount: /: device is busy

      so maybe umount -f /dev/hda1 will do the trick (forces unmount). So lets try it:

      # umount -f /dev/hda1
      umount2: Device or resource busy
      umount: /dev/hda1: not mounted
      umount: /: Illegal seek
      umount2: Device or resource busy
      umount: /: device is busy

      Nope. Looks like this is a Windows-only feature. I guess Windows must be the more powerful OS...

      --
      #!/
    18. Re:real application! by FireBreathingDog · · Score: 2, Informative
      Mac OS X can do this via pbcopy and pbpaste, the pb standing for the NeXT-ism "pasteboard," or what Mac users normally call the clipboard.

      For example, is you issue the command:

      cat somefile | pbcopy

      the clipboard receives the contents of somefile, whereas if you type:

      pbpaste > somefile

      puts the contents of the clipboard into the file somefile.

    19. Re:real application! by Feztaa · · Score: 2, Insightful

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

      The only time I can see this being useful is if your terminal app is too crippled to allow you to copy and paste natively.

      So, this isn't a great innovative feature, it's a clever workaround for some other fundamental brain-damage.

    20. Re:real application! by richie2000 · · Score: 2, Insightful

      Linux?

      --
      Money for nothing, pix for free
    21. Re:real application! by Phroggy · · Score: 2, Informative

      Ah... in NeXTStep it was called the Pasteboard?

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    22. Re:real application! by Urkki · · Score: 2, Informative

      You apparently have never copy-pasted something very long from terminal window... Sure you can scroll, but it's still pita if it's even moderately long.

    23. Re:real application! by olderchurch · · Score: 3, Informative

      Try irfanview an excellent image viewer, with automatic resize and slideshow!

      --
      Disclaimer: This opinion was created without the use of any facts
    24. Re:real application! by Jeremy+Erwin · · Score: 2, Informative

      Yes, there's a class named NSPasteboard in the AppKit. Unfortunately, apple has not seen fit to write a manpage for "pbcopy", so I'm not sure if there is a way to individually access the more specialized pasteboards--MacOSX has at least five of them.

    25. Re:real application! by NihilSmurf · · Score: 2, Informative

      Maybe CSHOW? It had a palette-rotation feature which was good for viewing fractals (they were all the rage back then).

  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 Anonymous Coward · · Score: 2, Funny

      Except when you run some "enhanced" application like WinAmp or let's say MS Office, where the app takes precedence and Ctrl+Alt+M is suddenly "high-light, make the text blue, and spell check for Japanese".

    2. 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. Re:Windows Key by capnjack41 · · Score: 2, Informative

      Here's a list...there are some other interesting ones on there too, like that weird Fn key on laptops.

    4. Re:Windows Key by ssstraub · · Score: 2, Interesting

      Actually, "Windows E + D" is "Show Desktop."

      "Windows E + M" is "Minimize all." Yes, there is a difference. The first will put everything in the background, while the second will only minimize windows that have the standard "minimize" control. Experiement with winamp open...

    5. Re:Windows Key by irc.goatse.cx+troll · · Score: 2, Informative

      " This is one of my major "wow that is a PITA" points about Linux.

      WHERE ARE MY HOTKEYS???"

      Wherever you set them.
      I have alt+c close current window, alt+k,c to sigkill it, alt+mwheeldown/up to cycle through tabs in my current pane (I use ion. I'll provide screenshots if someone asks). Then theres the GNU ReadLine shorcuts that a lot of apps respect(most because they actually use ReadLine, then the rest just because theyre standard.

      ^A - begining of line
      ^E - end of line
      ^K - delete text from cursor to end of line
      ^U - delete text from cursor to begining of line
      ^V - insert raw char regardless of other bindings

      Theres plenty more, see man ReadLine. They're all configurable of course.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    6. Re:Windows Key by redhog · · Score: 4, Informative

      All the mysterious keys are there for you to remap using xmodmap! And having a spare one left over is allways good if a key fails (as a result of piping tea through yourr keyboard). And of course, the windows-key is in the correct place of a meta key, so you could be a better emacs-user in just minutes! And when talking about SysReq, it really is a request to the system, if you gave Magique SysReq compiled in in your Linux-kernel - then press Alt-SysReq-key where key is b to reboot, s to sync disks and r to remount all disks read-only. And this works even if some user-space program fucks up your screen and keyboard...

      --
      --The knowledge that you are an idiot, is what distinguishes you from one.
  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;
    3. Re:An old one by Absoluttt · · Score: 2, Funny

      How about the obligatory porno text!
      C:

      :
      ###
      See colon, enter colon, pound pound pound!

    4. Re:An old one by Bios_Hakr · · Score: 2, Informative

      Wow, that looks exactly like a spellcheck function in PERL! :)

      --
      I'd rather you do it wrong, than for me to have to do it at all.
  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?

    1. Re:Scroll Lock Key by dekashizl · · Score: 4, Funny

      "Does it do something else?" It PAINS me to hear this ignorant question, but recognizing the lack of spiritual context in our society now, allow me to educate our loyal readership a bit, and perhaps open some eyes up to THE TRUTH.

      Many thousands of years ago, a new technology brought forth rampant unapproved duplication of holy scrolls. Fearing their power was slipping out of their grip, the religious leadership began a campaign of identifying and stoning to death the worst offenders.

      When this campaign backfired, causing people to buy even less scrolls than before, they changed their approach by embedding actual physical protection on scrolls they sold, in an attempt to reduce the illegal duplication and maintain control over distribution.

      These "scroll locks" were placed on all scrolls manufactured, and indeed served to protect their power for several decades. But, eventually they were cracked, for it was only a matter of time, and scrolls and their content became free.

      The world changed for the better, and people vowed never to let anything like that happen again. As we say now "when pigs fly", they too saw the improbability of ever allowing such a thing to happen again. "Yeah, maybe 2000 years after the Son of God walks the earth, then we'll let this happen again, but not before that!" laughed Haramud Ha'abbahakbar.

      And so it was inscribed in many religious texts (rough translation) "And bind upon your keyboards always a key named 'Scroll Lock' so that you may be reminded daily of the plight caused by this wretched behavior of control, and that you may take your child upon your lap and tell him of the horrors forced upon his ancestors in the time when individual men were treated as slaves."

      It saddens me that this history is forgotten, and all we can think about is scrolling a spreadsheet or switching monitors. To think that people actually would remove this key frightens me and foretells of a coming apocalypse, as people have foresaken their history and are doomed to repeat it.

  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.

    1. Re:Scroll lock is useful in Linux terminals by voisine · · Score: 2, Informative

      In BSD, using the arrow keys with scroll lock on is the equivilant of shift+PgUp,PgDn in Linux.

    2. Re:Scroll lock is useful in Linux terminals by drinkypoo · · Score: 3, Informative
      I have news for you, and its name is ^S and ^Q! Sing it loudly from the mountaintops!

      P.S. this works places other than Unix also.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    3. Re:Scroll lock is useful in Linux terminals by Ded+Bob · · Score: 2, Informative

      From syscons(4) in FreeBSD:

      Back Scrolling
      The syscons driver allows the user to browse the output which has
      ``scrolled off'' the top of the screen.

      Press the ``slock'' key (usually ScrllLock / Scroll Lock or Pause on many
      keyboards) and the terminal is in the ``scrollback'' mode. It is indi-
      cated by the Scroll Lock LED. Use the arrow keys, the Page Up/Down keys
      and the Home/End keys to scroll buffered terminal output. Press the
      ``slock'' key again to get back to the normal terminal mode.

      The size of the scrollback buffer can be set by the SC_HISTORY_SIZE
      option described below.

    4. Re:Scroll lock is useful in Linux terminals by evilviper · · Score: 2, Informative
      In BSD

      NO! Not in "BSD", ONLY in FreeBSD... FreeBSD is not the end-all, be-all BSD, thank you very much.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    5. Re:Scroll lock is useful in Linux terminals by Yaztromo · · Score: 2, Insightful
      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.

      It's also used in Lotus Notes for its original purpose. The last company I worked for used Notes as its groupware client, and it once took me 5 minutes to figure out why I couldn't scroll through my list of inbox e-mail messages without the entire list moving up and down, not having noticed that the "Scroll Lock" light was on :).

      Yaz.

    6. Re:Scroll lock is useful in Linux terminals by fishbowl · · Score: 2, Interesting

      How can I disable the scroll lock key in Linux, both on consoles and in X keyboard mapping?

      My KVM switch uses Scroll Lock to switch hosts, but, often this confuses my terminals, sometimes to the point where I must do mad-bomber techniques to reset the keyboard, and sometimes badly enough that I've chosen to reboot.

      Is there a way to disable the scroll lock key at the keyboard driver level?

      --
      -fb Everything not expressly forbidden is now mandatory.
  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.

    1. Re:The Light by Thing+1 · · Score: 4, Funny
      That's hilarious. Reminds me of tripping in college...

      Pointing at radio tower with blinking red light: "What's that tower for?"

      "They built it to warn planes."

      --
      I feel fantastic, and I'm still alive.
  8. MS Office scroll lock peeve by Humba · · Score: 3, Interesting

    It's always bugged me that Scroll Lock doesn't work in MS Word or in Visual Studio. (I know, I know.)

    I'll be reading a document using the scroll wheel on my mouse, get tired of that particular method then switch to using the arrow key, which then jumps the view to the current cursor position, which is by now miles away from where I was reading.

    Not exactly sure I'd remember to turn on Scroll Lock in the first place, but for read-only documents it might be a good default.

    --H

    1. Re:MS Office scroll lock peeve by Malc · · Score: 2, Informative

      Use Ctrl+Arrow keys to scroll in this situation. The insertion point will probably be moved to the edge of the visible area.

  9. More interesting question migth be... by eb4x · · Score: 3, Insightful

    Who's the smartass that switched "Caps Lock" and "Ctrl" keys?

    1. Re:More interesting question migth be... by archen · · Score: 3, Interesting

      Then switch it back (I do on all my computers).

      FreeBSD : Run sysinstall and you can select a keymap with caps as a ctrl.

      Linux : you can do it at the "KDE" level, or level of X, but the most reliable method is to just use
      echo 'keycode 58 = Control' | loadkeys
      at bootup

      Win 9x : I believe you can just use they keymap util with powertools

      Win2k (xp?) : you have to fuck with the registry. I can't recall how I did it, but I got it to work and I just run a regestry import now (you can find articles on how to do it). Looks like this.
      [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSe t\Contr ol\Keyboard Layout]
      "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00 ,3a,00,00,00,00,00

      (run at own risk, may destroy your computer)

    2. Re:More interesting question migth be... by pVoid · · Score: 2, Informative
      Actually, check this cool hack out.

      Mind you, this is not a registry thing because you actually need code to run it. With this, caps lock will go uppercase, and CTRL will release the lock.

  10. Mad Props by Marc2k · · Score: 3, Interesting

    Sweet Jesus tell me what the 'Props' key does on Sun keyboards, for me it just beeps.

    --
    --- What
    1. Re:Mad Props by rudedog · · Score: 4, Informative

      If I recall correctly, back in the days of openlook, the props key was used to bring up the properties menu for a window. That's as much as I can remember.

  11. 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.
    1. Re:Alt Graph on Sun-boxen ... by NaturePhotog · · Score: 4, Informative

      On keyboards in general, most keys generates two characters. This is fine for English, not using any letters besides A-Z or any accents as far as ASCII is concerned.

      However, for many European languages, there are additional characters, like a+ring (U+0035) in Swedish, and accented characters, like e+acute (U+00E9) in French. Since back in the days of XTs, there were only 83/84 keys to go around, they made some keys produce a third and sometimes fourth character. These were accessed by pressing Ctrl and Alt for the third char and Ctrl, Alt and Shift for the fourth char and then the key.

      At some point, it was (rightfully) decided this was unnecessarily clunky. Keyboard BIOSes/drivers were changed to support the Mac-style input of accent + character to generate that character accented. That still left the 'standard' for older keyboards to be backward compatible with, and other chars that didn't fit that pattern.

      So when the 101/102 key keyboards came out, for European languages that changed the right Alt key to Alt Gr, or alternate graphic. (For some languages it had a different abbreviation, like Alt Car). This allowed typing Alt Gr plus one of the 3- or 4-character keys to access the 3rd (and with Shift, the 4th) character. Still a pain, but less so than a 3 or 4 finger salute to get a single character.

    2. Re:Alt Graph on Sun-boxen ... by Captain_Chaos · · Score: 4, Interesting

      Most PC keyboards outside of the US have the Alt Graph (or Alt Gr) key. It's used to access all kinds of international characters. On my keyboard (I'm in the Netherlands), I can type the following characters with it: 1/41/23/4''xaae(R)uuiooaBdoae(C)nc

      When I typed it, there were 36 special characters (accented characters, the Euro sign and other currency signs, international alphabet and punctuation characters, etc.) following that colon, I'm curious to see how many of them will survive Slashdot's US-centric character handling code...

    3. Re:Alt Graph on Sun-boxen ... by Captain_Chaos · · Score: 2, Interesting

      Wow, that's pretty sad. None of them survived! Not a single one! Slashdot displays typical American arrogance and ignorance by discarding accents and changing characters to alternatives that are not equivalent or just plain wrong.

      I was going to include a table here showing what some of the worst mistakes Slashdot makes are (I mean, changing a ringel-S, which is an alternative to a double S, to a B?!?!), but it wouldn't pass the lameness filter! It told me to "use fewer 'junk' characters"! So accents, currency signs, international punctuation, etc. are considered "lame" and "junk" by Slashdot?! I mean, how fucking arrogant can you get!

  12. It's just another key... by Anonymous Coward · · Score: 2, Insightful

    To clean out after you keyboard gets too sticky from all that protein.

  13. The ` key by vanza · · Score: 2, Informative

    You know, it's not just a LISP or Python operator... some of us use it to write in our languages. Tres frequemment, sometimes. (I'm not French, but, similarly to French, my native language uses the grave accent - just not as often.)

    --
    Marcelo Vanzin
    1. Re:The ` key by vanza · · Score: 5, Funny

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

      --
      Marcelo Vanzin
    2. 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"
    3. Re:The ` key by WWWWolf · · Score: 2

      Yeah, but I guess the French keyboards have specific keys for these letters as well?

      At least Finnish keyboard has A and O with umlaut and A with ring as well for some weird reason. (The capital versions of the characters are U+00C4, U+00D6 and U+00C5, respectively. And yes, I don't like the way that it's 2003 already and Slashdot has problems with Weird Foreign Characters...) So, while typing in Finnish or Swedish, there's no need to use the umlaut accent key - which is thus infrequently used on Finnish keyboard. Since I'm guessing the acute/grave accent keys are on French keyboard, I suppose it's also infrequently used there.

      The accent keys are handy in limited situations but I'm also sort of glad that programming languages abuse them so marvellously. =)

  14. I use it for usefull things... by nomel · · Score: 3, Interesting

    Such as Message Notification for Trillian and nice blinky light plugin for music in winamp.

    Like I'll believe it has a use other than those...pfft.

  15. Use for the tilde key by uvsc_wolverine · · Score: 3, Informative

    The tilde still has some limited use in C++ (don't know about other C-based programming languages since I don't know any of the others...yet). It's how you indicate to the compiler that this is the destructor function for programmer-defined class. That way the instructions in the destructor are automatically executed when an object of the class goes out of scope (usually used for returning dynamically allocated memory). Example: MyClass(); //CONstructor ~MyClass(); //DEstructor

    --
    This space for rent...
    1. Re:Use for the tilde key by larry+bagina · · Score: 2, Informative
      ~ is also used in C for binary negation.

      0xbeefbabe & (~0x04) == 0xbeefbabe & 0xfffffff8

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    2. Re:Use for the tilde key by proj_2501 · · Score: 2, Informative

      it's also the bitwise-NOT operator.

      say char boing = 0x55; // 01010101
      char gniob = ~boing; // 10101010

  16. Re:Or can anyone explain by grolschie · · Score: 4, Funny

    WHATISTHISCAPSLOCKKEYFOR?

    It's for annoying the crap out of email recipients and newsgroup readers - of course.

  17. Uses for AltGr by red_dragon · · Score: 3, Interesting

    AltGr ("alternate graphic," although it should really be "alternate glyph") is used for entering extended characters beyond what the standard keyboard layout supports. It's equivalent to the X keysym Mode_switch. When you use the "US International" keyboard layout in Windows, the right Alt key becomes AltGr, which when pressed along with other keys produces various extended characters, including accented letters, special punctuation marks, and other fancy stuff without having to type in the ASCII value on the numeric keypad while holding the Alt key. On non-US keyboards, like the ISO Spanish keyboard on my Mac, some keys have extra characters printed on the key caps, indicating which character they generate while pressing AltGr.

    --
    In Soviet Russia, Jesus asks: "What Would You Do?"
  18. Re:Losing the Insert key by the_other_one · · Score: 3, Funny

    You are not using a modern keyboard.

    You are using a Modern Art keyboard.

    We used to use backtick an tilde as delimiters in proprietary text storage and parsing routines. Nobody will these when entering text into a program. Well at least that was the theory at design time.

    --
    134340: I am not a number. I am a free planet!
  19. Re:Losing the Insert key by EvanED · · Score: 2, Informative

    And ~ is essential in many URLs.

  20. Re:The real question is by ottothecow · · Score: 2, Funny
    You can sue the arrows to move the pointer

    What has this world come to...now you have to call your lawyer and start sueing things just to move your pointer...wtf

    --
    Bottles.
  21. Wrong! by sakusha · · Score: 4, Interesting

    Scroll lock is not what "una" says it is. The function she describes wasn't used in that manner. The IBM PC used the standard Control-S and Control-Q to stop and start screen scrolling.
    The Scroll Lock key was a vestige of the old IBM word processor systems. It was used to lock the cursor in place, and the up and down arrow keys scrolled the entire screen, leaving the cursor locked. It should have been called "cursor lock."
    The article is riddled with errors. For example, una says the Macintosh extended keyboards have a scroll lock key. It does not.

    1. Re:Wrong! by Trogre · · Score: 4, Informative

      For example, una says the Macintosh extended keyboards have a scroll lock key. It does not.

      Yes it does. It shares the same keycap as F14.

      --
      "Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
    2. Re:Wrong! by silvaran · · Score: 4, Informative

      It was used to lock the cursor in place, and the up and down arrow keys scrolled the entire screen, leaving the cursor locked.

      I'm not entirely certain what article you thought you read, but according to Una:

      The main intent of the Scroll Lock key was to allow scrolling of screen text up, down and presumably sideways using the arrow keys in the days before large displays and graphical scroll bars.

      According to you, it sounds like Una got it right at the start.

      RTFA

  22. Here's an idea by OldTome · · Score: 4, Funny

    for a cutting edge super user friendly OS: Make the Print Screen key actually work and PRINT THE FREAKIN' SCREEN!

    --
    The more you want, the less you have.
    1. Re:Here's an idea by akedia · · Score: 2, Informative

      In every version of Windows since 3.1 pressing Print Screen will copy a screenshot of the entire screen to the clipboard. Pressing Alt + Print Screen will copy an image of the current active window.

  23. Re:Losing the Insert key by thecampbeln · · Score: 3, Insightful
    This is the one key that I ALWAYS remove from my keyboards (which always thrills the crap out of my superiors - "What happened to your keyboard?!"). Anyway, the Insert is always gone from my keyboards, generally along with the capslock (though I do occasionally jab the sensor to turn it on and off, but I hate hitting it accidentally - stupid advanced hunt-n-peck method! ;). I've always wondered about the Scroll Lock key... never had a reason to remove it (as it doesn't piss me off), but always wondered =)

    What keys do you "liberate" from your keyboards?

    --
    "1984" was ment to be a warning, not a guidebook. You hear that Kim Jong-il!? BushCo?!
  24. Alt Graph.... by jdreed1024 · · Score: 3, Informative
    Alt Graph is a modifier key, like Shift, Control, Meta, etc. It existed on the PC platform too. If you look at non-US keyboard maps in the old IBM DOS manuals (like version 3.30), you'll see the that one of the "Alt" keys was labelled "AltGr" (guess what the "Gr" is an abbreviation for). You had to use the AltGr key to get things like accents and stuff if you used a non-US code page in DOS.

    ISTR that AltGraph+Help did something on older Sun machines, but I can't recall what.

    --
    There is no sig, there is only Zuul.
  25. 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.

  26. Alt-Gr (as seen on lusenet) by StandardDeviant · · Score: 4, Funny

    Alt-Gr, useful when that regular "Grrrrrrrr!" just isn't enough.

    (Alt-Gr key example (in this case being illustrated as part of a key combo to produce the Euro symbol))

  27. Re:scroll lock by RevDobbs · · Score: 2, Funny

    up, down, and ``straight to eleven''.

  28. 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.
  29. I can't find by Anonymous Coward · · Score: 5, Funny

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

  30. nigerians by goombah99 · · Score: 4, Funny

    THe capslock key is wired on onall nigerian keyboards by law.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  31. Re:Hmm... by telstar · · Score: 4, Funny
    "They still haven't told me what the 'any key' does"
  32. For all the NetAdmins out there... by kobukson · · Score: 3, Funny

    at my lab, we administer cisco routers using a console connection to a pc via hyperterminal. what you see in the screen is a scrolling-text, command prompt environment. sometimes, the keyboard gets bumped around and the scroll-lock button gets accidently pressed.

    my co-worker, in all the years that he's been working here, never seems to learn this.

    i'd be sitting at my desk, trying to do more important stuff (like reading /.), when i'd hear him yell out:

    "there's something wrong with this router! come check it out..."

    me: "is the scroll-lock on?"

    few seconds later...

    "oh."

    --
    -- I hereby announce, on behalf of my great ancester Oog, a retroactive patent on THE WHEEL.
  33. Re:Losing the Insert key by wampus · · Score: 2, Funny

    It would REALLY suck to lose the tilde and have to type $HOME all the time.

  34. 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.
  35. Re:Outstanding, but... by DCowern · · Score: 4, Funny

    Look no further, Compaq has the answer.

  36. Re:Alt -escape by ComputerSlicer23 · · Score: 4, Interesting
    They are slightly different. While Alt-Esc, and the Windows key do the same thing. In Windows 95, under Duke Nukem, pressing the Windows key would task switch you out, and the game would never work if you task switched back. Pressing alt-esc would do exactly the same thing, but you could task switch back to Duke. It took a lot of habit breaking to fix hitting the Windows key accidently. And even more to use alt esc to switch back to windows temporarily.

    Not sure if that is was a Win95 bug, a Duke bug or what. However, clearly it is possible to detect the difference between the two keys.

    Hmmm, that might have been Ctl-Esc, but I remember the bug in Duke was like that.

    Kirby

  37. 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.
  38. Yes: Screen by marnanel · · Score: 4, Informative

    Well, the clipboard is a property of the environment, rather than the OS. But there's certainly at least one environment that allows this: GNU screen.

    Screen has a concept of a buffer file that can be used to store or load the clipboard. The name of this file is defined in your screenrc, so it can vary from system to system, but it's often called /tmp/screen-xchg or (better for multi-user systems) ~/.screen_exchange. The keystroke ^A< reads this file and ^A> writes it; ^A> will also flash up a message telling you what the name of the file is (for example, Copybuffer written to "/tmp/screen-xchg" ).

    So what you do is:

    $ some-command > ~/.screen_exchange
    ^A< (copybuf)
    screen responds "Slurped 2323 characters into buffer"
    ^A] (paste)

    And there you have it.

    --
    GROGGS: alive and well and living in
  39. Re:Losing the Insert key by the_mad_poster · · Score: 2, Funny

    I dont have an key. I dont understand whats up with people on Slashdot always griping about my typing and grammar. Its perfectly acceptable. Theres nothing wrong with it. Whatever, I just dont get it.

    --
    Alito: A vote for Alito is a punch in the eye to put that bitch back in her place!
  40. Fan of Michael Moorcock I presume? by quinkin · · Score: 3, Informative
    Una Persson??

    Well call me Catherine Cornelius and break out the psychotropic lesbian porn fiction...

    Well it is true to the spirit of Moorcock. Just look at the cover art.

    Ok, so it is a touch off-topic, but I was stunned to see a literary(sic) reference in a /. link

    Q.

    --
    Insert Signature Here
    1. Re:Fan of Michael Moorcock I presume? by quinkin · · Score: 2, Insightful
      Hence the (sic)...

      Q.

      --
      Insert Signature Here
  41. Re:What's the deal with the really weird key? by anichan · · Score: 2, Informative

    Not really. The idea, I expect, is that the key is there to allow someone to not have to use a mouse at all, for certain things. ie: Move through a list of files in a directory, hit this key, select open with, or whatever.

    It's useful if you are typing, with your hand away from the mouse, and want to do a right click on th highlighted item.

    Really...

    --

    karma is for the weak >)

  42. 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, ...

  43. Also for execute by brunes69 · · Score: 2, Informative

    Enclosing statements in backticks causes the string to be executed at the shell level and the resulsts stored ina string. You can do this in bash, Perl, PHP, and a myrid of other lanuages. eg type "echo `ls`" at the prompt. Then again I am sure most everyone knew this already

  44. Re:Hmm... by OneFix · · Score: 2, Interesting

    stupid tag filter...that should have been...

    The thing actually had an [Any] key...it was just an extra Enter key.

  45. Re:real application! - clip tool by ningcat · · Score: 2, Informative

    The "| clip" thing is not a WinXP thing. It's a 32-bit command line tool created by Dave Navarro.

    cmdtools website "clip" is near the bottom of the page

    clip.zip direct download

  46. Re:Alt -escape by sjwt · · Score: 2, Funny

    wow,
    just tryed that real OS trick,
    and blow me down with a feather
    XP is a real OS after all.

    --
    You have 5 Moderator Points!
    Which Helpless Linux zealot/MS basher do you want to mod down today?
  47. Yes, and here it is. by devphil · · Score: 2, Informative


    In theory, after running "apt-get install xclip" you can do things like

    producer | xclip -i

    and the primary X selection will be loaded up with the output, all reading for middle-clicking. Likewise, you can sweep a bunch of text and use it with

    consumer `xclip -o`

    Other options let you use other clipboards, etc.

    In practice, you can't just apt-get it. You have to apt-get the source, apply the content negotiation patch, and run buildpackage yourself. Then it works perfectly. (I have no clue what content negotiation means, but apparently kde wants it.)

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
  48. SysReq by dlb · · Score: 2, Informative

    The SysReq (or "System Request") key is still heavily used in the as/400 world for job management on the system console. Using the SysReq key, you can send different signals to whatever current job was running

    Think of it as a key dedicated to the unix 'kill' command.

    ~dlb

    1. Re:SysReq by bccomm · · Score: 3, Informative

      Not to mention the SysRq key still in use on Linux for debugging---if you enable CONFIG_MAGIC_SYSRQ (Linux 2.4) or CONFIG_SYSRQ (Linux 2.6).

      I really doubt that ``it's days are numbered.''

  49. Magic SysRq by indianseason · · Score: 2, Informative

    I didn't see anyone comment on this, but the SysRq hooks to the Linux kernel. It allows the user to send commands to the kernel like sync, reboot, etc.

  50. The Straight Dope by devphil · · Score: 2, Funny


    is extremely knowledgeable and cosmopolitan. No urban legends, actual investigation, proper journalistic techniques. Believe me, /. had absolutely nothing to do with it.

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
  51. Just a thought but... by pr0ntab · · Score: 3, Informative

    I imagine open files are tied to the "true" paths:
    multi(0)disk(0)rdisk(0)partition(1)/window s/system 32/ntoskrnl.exe
    etc, etc, etc...

    The C: drive thingies are just useful for the Win32API, so opening new files off that drive won't work, and explorer will probably fail in mysterious ways later on, if the C: is mentioned anywhere in the registry where it might be used to dynamically load some view or file operation.

    As you might expect, drives letters are just places where to start a mapping to a mounted filesystem (which is internally identified with a GUID, like everything else, the drive letter has no significance). Windows only needs C: to boot and load programs, but if you aren't opening files, you don't need it.

    --
    Fuck Beta. Fuck Dice
  52. Sun Keyboards by acvolt · · Score: 2, Informative

    Can anybody please tell me that the "blank" key next to the help button on a Sun keyboard is used for?

  53. Re:Mirrors by jmpvm · · Score: 2, Interesting

    I've converted the document to PDF

    Thus making it less accessible than just a slashdotted server. Thanks.

  54. (answered earlier in this thread) by pr0ntab · · Score: 2, Informative

    it's because Sun Type 6 keyboards are made for both Suns and Linux boxes they ship, and on Linux boxes it's the escape key. The just change the key covers.

    --
    Fuck Beta. Fuck Dice
  55. Alt-GR by terminal.dk · · Score: 2, Informative

    The "Alt Gr" key is used for us foreigners to reach seldomly used charatcers like @$ (Alt-Gr 2, 3 and 4 respectively), or {[]} (Alt-Gr 7890) or | (alt-GR `) or \ (alt-GR ). And more important, Alt-Gr e is the Euro character. You know, the european dollar, way stonger than the US dollar.

    On the other hand, we get often used charatcers like aeoa as primary keys, and have access "# with Shift + 2, 3 and 4.

    This is all based on a danish keyboard. Some people have grown beyond US-ASCII (7-bit crap)

  56. wmaker: wxcopy, wxpaste by nutsy · · Score: 2, Informative

    In Window Maker, 'wxcopy --help' and 'wxpaste --help' for help on using those.

    I'm afraid I don't know about the others. Anyone? Anyone?

  57. Any Key by Voiceve · · Score: 2, Funny

    But where is the any key?

  58. 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.

    1. Re:True story by pe1chl · · Score: 2, Interesting

      Yes, this is a very weak link in that system. I have seen it on other mini systems as well. When the console is off or defective, or Ctrl-S or scroll lock is hit, the whole system stops (after a while) or won't boot.
      We have had our AIX box hanging during a weekly nightly reboot because someone switched off the console terminal.
      Indeed it can leave you puzzled for a while, especially as this console is rarely used, and operators normally use network connections to access the machine.

    2. Re:True story by HarveyTheWonderBug · · Score: 2, Interesting

      Old Digital Equipment computers have a lot of special keys, especially on the numeric keybord. Under Vax-VMS EDT and EVE editors, they used to allow for text selection, query/replace, etc... They were accessed with the "Gold" key -so named because it's the only yellowish key on the keyboard...

      Believe it or no, but these boxes are still around... The software that run on them was never ported to *nix. Right now, I have to edit some files over such a machine/OS but I am connected to it from a sun where none of these keys exist... And it's really a pain :(

    3. Re:True story by Generic+Guy · · Score: 2, Interesting
      especially as this console is rarely used, and operators normally use network connections to access the machine.

      Often times, although probably less now than in the past, these console terminals would dump console input/output to an attached printer. Sort of a permanent record, especially if something really bad(tm) happened and killed the machine (you could see the last few lines of output on the printout).

      --
      { - Generic Guy - }
  59. Missing some info by Jack+Schitt · · Score: 4, Informative

    The Scroll Lock was also used by a DOS TSR known as ANSI. When loaded, it allowed scrolling of the entire screen history when the Scroll Lock was on. When you dir a huge folder, you could hit scroll lock and use the arrow keys to navigate the entire list of files. More useful than dir /p...

    The Print Screen/SysRq key was used in Dos to send the current screen of text directly to lpt1: (your printer), hence the name "Print Screen". In Windows (all the way back to Windows 3.x), Print Screen executes a screen capture (without the mouse cursor) and puts it on the clipboard. Alt+PrintScreen copies just the current window.

    In addition to what was said in the article about Pause/Break, pressing it _during_ a dir or other scrolling text operation will halt the screen. (This includes during booting before the OS loads.) Press any key to continue.

    As for the `/~ key? Still haven't found a useful function for it other than typing a ` or a ~.

    And the |? That one serves just about the same purpose to me as the "Context Menu" button on many newer keyboards, which is to say, none.

    --
    This message brought to you by Jack Schitt's Previously Shat Shit
  60. The internet has ruined my moral values! by Sindri · · Score: 2, Interesting

    I did notice the example had to do with listing 20,000 Lesbian Porn pics but didn't see anything wrong with that until you pointed it out.

    I just thought he should sort them into subdirectories like I do.

  61. What's Alt Gr for? by jonbryce · · Score: 4, Informative

    For people who don't speak english, Alt Gr is pretty useful, as it lets you type accented characters. In EU countries, it is also used to let you type the Euro symbol - Alt-Gr+4 on UK and Irish Keyboards, Alt-Gr+E on most others.

  62. Re:but by VanillaCoke420 · · Score: 2, Funny

    A scroll wheel then?

  63. Scroll lock lives by An+Elephant · · Score: 2, Informative
    There is a Windows application that makes Scroll Lock perform its original function on most applications (not just Excel).

    It's here.

    (Plug alert: I work for Platonix; this is a toy).