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.

90 lines
1.6 KiB

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