Simple Terminal from SuckLess
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.

77 lines
1.1 KiB

  1. #define TAB 8
  2. #define FONT "6x13"
  3. #define BOLDFONT FONT"bold"
  4. #define BORDER 2
  5. /* Terminal colors */
  6. static const char *colorname[] = {
  7. "black",
  8. "#CC0000",
  9. "#4E9A06",
  10. "#C4A000",
  11. "#3465A4",
  12. "#75507B",
  13. "#06989A",
  14. "#888a85",
  15. "#555753",
  16. "#EF2929",
  17. "#8AE234",
  18. "#FCE94F",
  19. "#729FCF",
  20. "#AD7FA8",
  21. "#34E2E2",
  22. "#EEEEEC"
  23. };
  24. /* Default colors (colorname index) */
  25. /* foreground, background, cursor, visual bell */
  26. #define DefaultFG 7
  27. #define DefaultBG 0
  28. #define DefaultCS 1
  29. #define BellCol DefaultFG
  30. /* special keys */
  31. static Key key[] = {
  32. { XK_Delete, "\033[3~" },
  33. { XK_Home, "\033[1~" },
  34. { XK_End, "\033[4~" },
  35. { XK_Prior, "\033[5~" },
  36. { XK_Next, "\033[6~" },
  37. };
  38. static char gfx[] = {
  39. ['}'] = 'f',
  40. ['.'] = 'v',
  41. [','] = '<',
  42. ['+'] = '>',
  43. ['-'] = '^',
  44. ['h'] = '#',
  45. ['~'] = 'o',
  46. ['a'] = ':',
  47. ['f'] = '\\',
  48. ['`'] = '+',
  49. ['z'] = '>',
  50. ['{'] = '*',
  51. ['q'] = '-',
  52. ['i'] = '#',
  53. ['n'] = '+',
  54. ['y'] = '<',
  55. ['m'] = '+',
  56. ['j'] = '+',
  57. ['|'] = '!',
  58. ['g'] = '#',
  59. ['o'] = '~',
  60. ['p'] = '-',
  61. ['r'] = '-',
  62. ['s'] = '_',
  63. ['0'] = '#',
  64. ['w'] = '+',
  65. ['u'] = '+',
  66. ['t'] = '+',
  67. ['v'] = '+',
  68. ['l'] = '+',
  69. ['k'] = '+',
  70. ['x'] = '|',
  71. [255] = 0,
  72. };