Skip to content

Instantly share code, notes, and snippets.

@tmk
Last active July 2, 2020 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmk/22cb8680ca8ef854630ecd1953268c5b to your computer and use it in GitHub Desktop.
Save tmk/22cb8680ca8ef854630ecd1953268c5b to your computer and use it in GitHub Desktop.
Cherry G80-2551 Scan Code(Set 2/3)
Cherry G80-2551 126-key Terminal Keyboard
=========================================
https://deskthority.net/wiki/Cherry_G80-2551
G80-2551 in Scan Code Set 2
---------------------------
The keyobard starts up with Scan Code Set 2.
,-----------------------------------------------.
|+1F|+27|+2F|+5E| 08| 10| 18| 20| 28| 30| 38| 40|
|-----------------------------------------------|
| 05| 06| 04| 0C| 03| 0B| 83| 0A| 01| 09| 78| 07|
`-----------------------------------------------'
,-------. ,-----------------------------------------------------------. ,-----------. ,---------------.
|+19| 5F| | | | | | | | | | | | | | | | | |+17|*7D|*7A| | 76| 7E| 7C|*4A|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
|+39|*77| | | | | | | | | | | | | | | | |*69|*70|*71| | | | | 79|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
|+53| 50| | | | | | | | | | | | | | | | |-26|*75|-25| | | | | 7B|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
|*7C|+6F| | | | | | | | | | | | | | | | |*6B|*6C|*74| | | | | |
|-------| |-----------------------------------------------------------| |-----------| |-----------|*5A|
|+5C| 48| | | | | | | | | |-16|*72|-1E| | 70 | 71| |
`-------' `-----' `---------------------------------------' `-----' `-----------' `---------------'
*: 0xE0 prefixed(E1 for 77 Pause)
-: 0x80 prefixed(G80-2551 specific)
+: G80-2551 specific
https://geekhack.org/index.php?topic=103648.msg2894275#msg2894275
G80-2551(Code Set 2) Unimap default mapping
-------------------------------------------
,-----------------------------------------------.
|Gui|Mhk|F23|Hnk|F13|F14|F15|F16|F17|F18|F19|F20|
|-----------------------------------------------|
| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|
`-----------------------------------------------'
,-------. ,-----------------------------------------------------------. ,-----------. ,---------------.
|Mut|F24| | | | | | | | | | | | | | | | |NmL|PgU|PgD| |Esc|ScL| *| /|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
|VoU|Pau| | | | | | | | | | | | | | | | |End|Ins|Del| | | | | +|
|-------| |------------------------------------------------------` | |-----------| |---------------|
|VoD|F22| | | | | | | | | | | | | | | | |JPY| | #| | | | | -|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
|Psc|App| | | | | | | | | | | | | | | | |Hom| | | | | | |
|-------| |-----------------------------------------------------------| |-----------| |-----------|Ent|
|Gui|F21| | | | | | | | RO| |KAN| | | .| |
`-------' `-----' `---------------------------------------' `-----' `-----------' `---------------'
G80-2551 in Scan Code Set 3
---------------------------
The keyboard can be switch to Scan Code Set 3 with 'Select Alternate Scan Codes'command (F0 03).
,-----------------------------------------------.
| 08| 10| 18| 20| 28| 30| 38| 40| 48| 50| 57| 5F|
|-----------------------------------------------|
| 07| 0F| 17| 1F| 27| 2F| 37| 3F| 47| 4F| 56| 5E|
`-----------------------------------------------'
,-------. ,-----------------------------------------------------------. ,-----------. ,---------------.
| 05| 06| | 0E| 16| 1E| 26| 25| 2E| 36| 3D| 3E| 46| 45| 4E| 55| 5D| 66| | 67| 6E| 6F| | 76| 77| 7E| 84|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
| 04| 0C| | 0D | 15| 1D| 24| 2D| 2C| 35| 3C| 43| 44| 4D| 54| 5B| | | 64| 65| 6D| | 6C| 75| 7D| 7C|
|-------| |------------------------------------------------------` | |-----------| |---------------|
| 03| 0B| | 14 | 1C| 1B| 23| 2B| 34| 33| 3B| 42| 4B| 4C| 52| 53| 5A | |-26| 63|-25| | 6B| 73| 74| 7B|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
| 83| 0A| | 12 | 13| 1A| 22| 21| 2A| 32| 31| 3A| 41| 49| 4A| 51| 59 | | 61| 62| 6A| | 69| 72| 7A| 79|
|-------| |-----------------------------------------------------------| |-----------| |-----------| |
| 01| 09| | 11 | |19 | 29 |39 | | 58 | |-16| 60|-1E| | 68| 70| 71| |
`-------' `-----' `---------------------------------------' `-----' `-----------' `---------------'
-: 0x80 prefixed(G80-2551 specific)
Its scan codes are identical to IBM 122-key terminal keyboard except for four extra key around cursors.
https://geekhack.org/index.php?topic=103648.msg2894921#msg2894921
G80-2551(Code Set 3) Unimap default mapping
-------------------------------------------
,-----------------------------------------------.
|F13|F14|F15|F16|F17|F18|F19|F20|F21|F22|F23|F24|
|-----------------------------------------------|
|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|
`-----------------------------------------------'
,-------. ,-----------------------------------------------------------. ,-----------. ,---------------.
|Mut|Hkn| | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY| BS| | /|PgU|PgD| |Esc|NmL|ScL| *|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
|VoU|Pau| |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |End|Ins|Del| | 7| 8| 9| +|
|-------| |-----------------------------------------------------------| |-----------| |-----------|---|
|VoD|Mhk| |CapsLo| A| S| D| F| G| H| J| K| L| ;| '| #| Ret| |JPY|Up | #| | 4| 5| 6| -|
|-------| |-----------------------------------------------------------| |-----------| |---------------|
|Psc|App| |Shif| \| Z| X| C| V| B| N| M| ,| ,| /| RO| Shift| |Lef|Hom|Rig| | 1| 2| 3|Ent|
|-------| |-----------------------------------------------------------| |-----------| |-----------|---|
|Gui|Gui| |Ctrl| |Alt | Space |Alt | |Ctrl| | RO|Dow|KAN| | ,| 0| .| =|
`-------' `----' `---------------------------------------' `----' `-----------' `---------------'
JPY: JIS ¥
KAN: ひらがな
RO: JIS ろ(Japanese RO)
Hnk: 変換(Japanese Henkan)
Mhk: 無変換(Japanese MuHenkan)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment