The history of Alt+number sequences
devblogs.microsoft.com
devblogs.microsoft.com
The windows admin could see that the drive was filling up but not which directory was the cause.
Linux could see it. And so could my FTP client. (Enter fond memories of using FXP here too)
For multiple layers of chaos I might create multiple "blank" directories but only store the 'real' files multiple layers deep. For added "legitimacy" I might include the contents of \system or \print or something. I can't remember exactly.
To break out of the managed environment, someone figured out they could hit Ctrl+Break at the text-mode login screen - this would drop you to a DOS prompt. But the lab admin got wise to that and blocked that key combination.
I figured out a workaround: Alt+3. It would send an ASCII code that the input would interpret identically to Ctrl+Break, and we were back in business :-)
However, I can confirm that DIR /S doesn't enter directories starting with that character - TIL!
From reading the source code[1], this happens because it requires the name to be alphabetically below something called the "temp name", which is initialized to start with this character.
What the code seems to be doing is selection sort, finding the first (alphabetically lowest) subdirectory that hasn't been entered yet, by reading the entire directory each time and comparing all the names. Not very efficient, but excusable if it saved some memory.
[1] https://github.com/Hengle/ms_dos_6_0_source_code/blob/master... -- temp name init is at line 1767
(anyone working on ReactOS or Wine probably shouldn't click this link...)
The forum post seems to be about this directory in the leaked 3.5 source: https://github.com/Hengle/windows_nt_3_5_source_code/tree/ma...
Oh we had stuff for the linux sysadmins too. ^H was easy mode, throw in some VT control codes in there and you had a dir that NOBODY could navigate to without the code.
It was always odd to me that é was out of sequence:
Alt+160 => á
Alt+130 => é
Alt+161 => í
Alt+162 => ó
Alt+163 => ú
Alt+164 => ñ
Alt+165 => Ñ
Most people with US keyboards had no idea how to type ñ/Ñ, the most important out of the bunch. opt-n <char> for ñõã mark
opt-e <char> for éíóú mark
opt-i <char> for îûôê mark
opt-u <char> for üöïë mark
Add a shift to capitalize it.I have an AutoHotkey script to get this on Windows since it's so second-nature by now.
Fwiw I don't think ñ is any more important than the other accents, even in Spanish. Unless we're talking about año vs ano. That might be why it has a dedicated key.
Maybe it has something to do with the fact that it is the only one of those that is found in French, which may have been supported earlier than Spanish. I'd look at ç, è, à for further evidence.
0 = Ins, 1 = End, 2 = Down, 3 = PgDn, 4 = Left, 6 = Right, 7 = Home, 8 = Up, 9 = PgUp (and by exploiting the mod 256 parsing, it should always be possible to find a code that doesn't contain the digit 5)
Don't know if Windows emulates this, probably not. I wouldn't be surprised though if some part of the Windows keyboard driver translates the (different) scancodes sent by an USB keyboard into the legacy ones, just like the Alt+number handling does expect codepage 437 when there is no leading zero :)
Some might say that this kind of "cruft" is what makes Windows a horrible OS - but IMHO it's really cool to find such backwards compatibility, and sad when it goes away for no good reason, to be replaced with entirely new cruft that logs everything you do on your "Personal" Computer and sends it to some cloud service...
I remember using this back in the day for ALT+0160 to type non breaking space, which could do funny things in forums and chat programs like MSN and ICQ
IBus[1] can (apparently) do that!
I used to remember the unicode symbol for long dash—but now that I use EUR keymap I don't need to, and I've forgotten it :).
edit: oh crud, HN filters snowmans :(.
https://raw.githubusercontent.com/mirror/libX11/master/nls/e...
Besides, there's no compose sequence for snowman, is there?
<Multi_key> <O> <o> : "" U2603 # SNOWMAN
or whatever it is you want, where "" contains a snowman that HN strips. (Depending on your system, you may then need an `ibus restart` or some such thing to have your change picked up.)I wish it had interactive dialog box for better discoverability of compose sequences, showing you a list of possible alternatives based on the characters you have already typed.
U+fdfd is probably the character I use it with the most.
alt-30 alt-255 alt-30
new friends can't triforce
To this day, this remains the best way to insert the character, I have tried the PowerToys Quick Accent [1] but I had so many missed characters when typing fast.
[1] https://learn.microsoft.com/en-us/windows/powertoys/quick-ac...
The best way is to use a Spanish-layout keyboard. Otherwise, Alt is a useful hack.
For acute/grave accents I have a dead acute/grave key on my keyboard and because it's a German layout I already have the umlauts as separate keys. For "ë" and such I can compose the letter with <"> to get the diacritic version.
Are these sequences available on laptop keyboards or some of the smaller keyboards that have no numpad? I’m working on a Lenovo Trackpoint II keyboard and alt-0176 should create the degrees sign but I can’t figure out how to do it.
Unfortunately, for some reason unbeknownst to me, this doesn't work any longer on Windows 10+11
By default, the value is taken mod 256, and Alt+9731 gives you a heart.
But if you happen to be using a RichEdit control, then the Alt+… value is taken mod 65536, and Alt+9731 gives you a snowman.
And that is why some people hate Windows with so much passion. Not that other OSes don't have their peculiarities of course...
For my home rig I'm running a kbdfans odin which is a non-standard layout that gives you 99% of a full size layout but in a size only about 2.5 keys wider than a typical tkl. (Example: https://kbdfans.com/cdn/shop/products/9_08accc65-e9f0-4455-a...)
They have variants that are full-sized, which is what I'll get for home soon. Probably a 45g one rather than 30g, so that I can test the difference.
Personally I used to see coworkers with 65 or 60% mechanical keyboard and I have no clue how they could code without arrow, home, or page up/down keys. They must have been really committed to vim keys or something.
Switching their hands between the alphabet and number keys, sometimes multiple times, with bonus points for not knowing the numlock status and having to do it all over again.
With the amount of time all of us spend on keyboards, it just seems lazy/inefficient to not learn to touchtype, including the numbers and at least the common symbols.