This code method has been around since long before DOS operating system on computers, long before Bill Gates "created" windows. It should work in Linux as well, as Linus is based on Unix, and Unix was where this originated.
it is not generally taught in schools anymore, unless you have an older (much older) teacher that grew up with early Unix.
As to how it is accomplished, it DOES depend on the hardware of the keyboard, and how that hardware was implemented. Every single key sends a different code to the computer, the computer associates that code to whatever language files have been assigned. Each combination of keys also sends a different code. Ctrl Alt Del for example has one code, Ctrl-Alt-A has a different code, Ctrl-A a different code etc... Typically the key coding is a combination of a maximum of 3 keys combined, Ctrl-Shift + key, Ctrl-Alt + key, etc, but you can't get a code for Ctrl-Alt-Shift-A for example except in rare keyboards.
The "1" above the "Q" key is a different code than the "1" on the ten-key pad. Depending on the language file and program using those codes, you end up with the same result on your screen, but it is actually a different code number that is sent.
So, it is a combination of hardware, driver, and actual program that interprets the resulting codes.
Edit: Forgot to give you the
Alt-Code listing.
Modifié par Bannor Bloodfist, 02 novembre 2011 - 12:08 .