You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

115 line
4.0 KiB

  1. /*
  2. * libcaca Colour ASCII-Art library
  3. * Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
  4. * 2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
  5. * All Rights Reserved
  6. *
  7. * This library is free software. It comes without any warranty, to
  8. * the extent permitted by applicable law. You can redistribute it
  9. * and/or modify it under the terms of the Do What the Fuck You Want
  10. * to Public License, Version 2, as published by Sam Hocevar. See
  11. * http://www.wtfpl.net/ for more details.
  12. */
  13. #include "kernel.h"
  14. unsigned char kbdmap[] = {
  15. 0x1B, 0x1B, 0x1B, 0x1B, /* esc (0x01) */
  16. '1', '!', '1', '1',
  17. '2', '@', '2', '2',
  18. '3', '#', '3', '3',
  19. '4', '$', '4', '4',
  20. '5', '%', '5', '5',
  21. '6', '^', '6', '6',
  22. '7', '&', '7', '7',
  23. '8', '*', '8', '8',
  24. '9', '(', '9', '9',
  25. '0', ')', '0', '0',
  26. '-', '_', '-', '-',
  27. '=', '+', '=', '=',
  28. 0x08, 0x08, 0x7F, 0x08, /* backspace */
  29. 0x09, 0x09, 0x09, 0x09, /* tab */
  30. 'q', 'Q', 'q', 'q',
  31. 'w', 'W', 'w', 'w',
  32. 'e', 'E', 'e', 'e',
  33. 'r', 'R', 'r', 'r',
  34. 't', 'T', 't', 't',
  35. 'y', 'Y', 'y', 'y',
  36. 'u', 'U', 'u', 'u',
  37. 'i', 'I', 'i', 'i',
  38. 'o', 'O', 'o', 'o',
  39. 'p', 'P', 'p', 'p',
  40. '[', '{', '[', '[',
  41. ']', '}', ']', ']',
  42. 0x0A, 0x0A, 0x0A, 0x0A, /* enter */
  43. 0xFF, 0xFF, 0xFF, 0xFF, /* ctrl */
  44. 'a', 'A', 'a', 'a',
  45. 's', 'S', 's', 's',
  46. 'd', 'D', 'd', 'd',
  47. 'f', 'F', 'f', 'f',
  48. 'g', 'G', 'g', 'g',
  49. 'h', 'H', 'h', 'h',
  50. 'j', 'J', 'j', 'j',
  51. 'k', 'K', 'k', 'k',
  52. 'l', 'L', 'l', 'l',
  53. ';', ':', ';', ';',
  54. 0x27, 0x22, 0x27, 0x27, /* '" */
  55. '`', '~', '`', '`', /* `~ */
  56. 0xFF, 0xFF, 0xFF, 0xFF, /* Lshift (0x2a) */
  57. '\\', '|', '\\', '\\',
  58. 'z', 'Z', 'z', 'z',
  59. 'x', 'X', 'x', 'x',
  60. 'c', 'C', 'c', 'c',
  61. 'v', 'V', 'v', 'v',
  62. 'b', 'B', 'b', 'b',
  63. 'n', 'N', 'n', 'n',
  64. 'm', 'M', 'm', 'm',
  65. 0x2C, 0x3C, 0x2C, 0x2C, /* ,< */
  66. 0x2E, 0x3E, 0x2E, 0x2E, /* .> */
  67. 0x2F, 0x3F, 0x2F, 0x2F, /* /? */
  68. 0xFF, 0xFF, 0xFF, 0xFF, /* Rshift (0x36) */
  69. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x37) */
  70. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x38) */
  71. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x39) */
  72. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x3a) */
  73. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x3b) */
  74. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x3c) */
  75. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x3d) */
  76. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x3e) */
  77. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x3f) */
  78. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x40) */
  79. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x41) */
  80. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x42) */
  81. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x43) */
  82. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x44) */
  83. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x45) */
  84. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x46) */
  85. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x47) */
  86. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x48) */
  87. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x49) */
  88. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x4a) */
  89. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x4b) */
  90. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x4c) */
  91. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x4d) */
  92. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x4e) */
  93. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x4f) */
  94. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x50) */
  95. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x51) */
  96. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x52) */
  97. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x53) */
  98. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x54) */
  99. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x55) */
  100. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x56) */
  101. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x57) */
  102. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x58) */
  103. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x59) */
  104. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x5a) */
  105. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x5b) */
  106. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x5c) */
  107. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x5d) */
  108. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x5e) */
  109. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x5f) */
  110. 0xFF, 0xFF, 0xFF, 0xFF, /* (0x60) */
  111. 0xFF, 0xFF, 0xFF, 0xFF /* (0x61) */
  112. };