Skip to content

Commit

Permalink
#400 Update kvm-input-mode.md (scan codes)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Jun 15, 2023
1 parent c0974c1 commit a2691fd
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions doc/kvm-input-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,24 @@ ESC [ 201 ~ to signify the end.

## Scan Codes

...
Scan codes for the keys on a standard 101-key keyboard:

```
┌────┐ ┌────╥────╥────╥────┐ ┌────╥────╥────╥────┐ ┌────╥────╥────╥────┐ ┌────╥────╥────┐
| 01 │ | 3B ║ 3C ║ 3D ║ 3E | | 3F ║ 40 ║ 41 ║ 42 | | 43 ║ 44 ║ 57 ║ 58 | | 37 ║ 46 ║ 45 |
└────┘ └────╨────╨────╨────┘ └────╨────╨────╨────┘ └────╨────╨────╨────┘ └────╨────╨────┘
┌────╥────╥────╥────╥────╥────╥────╥────╥────╥────╥────╥────╥────╥────────┐ ┌────╥────╥────┐ ┌────╥────╥────╥────┐
| 29 ║ 02 ║ 03 ║ 04 ║ 05 ║ 06 ║ 07 ║ 08 ║ 09 ║ 0A ║ 0B ║ 0C ║ 0D ║ 0E | | 52 ║ 47 ║ 49 | | 45 ║ 35 ║ 37 ║ 4A |
╞════╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══════╡ ╞════╬════╬════╡ ╞════╬════╬════╬════╡
| 0F ║ 10 ║ 11 ║ 12 ║ 13 ║ 14 ║ 15 ║ 16 ║ 17 ║ 18 ║ 19 ║ 1A ║ 1B ║ 2B | | 53 ║ 4F ║ 51 | | 47 ║ 48 ║ 49 ║ |
╞══════╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩╦═══╩══════╡ └────╨────╨────┘ ╞════╬════╬════╣ 4E |
| 3A ║ 1E ║ 1F ║ 20 ║ 21 ║ 22 ║ 23 ║ 24 ║ 25 ║ 26 ║ 27 ║ 28 ║ 1C | | 4B ║ 4C ║ 4D ║ |
╞═══════╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩═╦══╩══════════╡ ┌────┐ ╞════╬════╬════╬════╡
| 2A ║ 2C ║ 2D ║ 2E ║ 2F ║ 30 ║ 31 ║ 32 ║ 33 ║ 34 ║ 35 ║ 36 | | 48 | | 4F ║ 50 ║ 51 ║ |
╞══════╦══╩═╦══╩═══╦╩════╩════╩════╩════╩════╩════╩╦═══╩╦═══╩╦═════╦══════╡ ┌────┼────┼────┐ ╞════╩════╬════╣ 1C |
| 1D ║ 5B ║ 38 ║ 39 ║ 38 ║ 5C ║ 5D ║ 1D | | 4B | 50 | 4D | | 52 ║ 53 ║ |
└──────╨────╨──────╨───────────────────────────────╨────╨────╨─────╨──────┘ └────╨────╨────┘ └─────────╨────╨────┘
```

## Keyboard Modifiers

Expand Down Expand Up @@ -154,7 +171,8 @@ Key | VirtCode | ScanCode | CtrlState | Not
------------------------------|--------------|--------------|--------------|-------------
<kbd>Esc</kbd> | ` 27` `0x1B` | ` 1` `0x01` | |
<kbd>Pause</kbd> | ` 19` `0x13` | ` 69` `0x45` | |
<kbd>Break</kbd> | ` 3` `0x03` | ` 69` `0x45` | | Ctrl + Break
<kbd>Break</kbd> | ` 3` `0x03` | ` 69` `0x45` | | Ctrl + Pause
<kbd>SysRq</kbd> | ` 44` `0x2C` | ` 84` `0x54` | | Alt + PrintScreen
<kbd>PrintScreen</kbd> | ` 44` `0x2C` | ` 55` `0x37` | Extended Key |
<kbd>CapsLock</kbd> | ` 20` `0x14` | ` 58` `0x3A` | |
<kbd>NumLock</kbd> | `144` `0x90` | ` 69` `0x45` | |
Expand Down

0 comments on commit a2691fd

Please sign in to comment.