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.

89 lines
1.5 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. /* special keys */
  31. static Key key[] = {
  32. { XK_BackSpace, "\177" },
  33. { XK_Delete, "\033[3~" },
  34. { XK_Home, "\033[1~" },
  35. { XK_End, "\033[4~" },
  36. { XK_Prior, "\033[5~" },
  37. { XK_Next, "\033[6~" },
  38. { XK_F1, "\033OP" },
  39. { XK_F2, "\033OQ" },
  40. { XK_F3, "\033OR" },
  41. { XK_F4, "\033OS" },
  42. { XK_F5, "\033[15~" },
  43. { XK_F6, "\033[17~" },
  44. { XK_F7, "\033[18~" },
  45. { XK_F8, "\033[19~" },
  46. { XK_F9, "\033[20~" },
  47. { XK_F10, "\033[21~" },
  48. { XK_F11, "\033[23~" },
  49. { XK_F12, "\033[24~" },
  50. };
  51. static char gfx[] = {
  52. ['}'] = 'f',
  53. ['.'] = 'v',
  54. [','] = '<',
  55. ['+'] = '>',
  56. ['-'] = '^',
  57. ['h'] = '#',
  58. ['~'] = 'o',
  59. ['a'] = ':',
  60. ['f'] = '\\',
  61. ['`'] = '+',
  62. ['z'] = '>',
  63. ['{'] = '*',
  64. ['q'] = '-',
  65. ['i'] = '#',
  66. ['n'] = '+',
  67. ['y'] = '<',
  68. ['m'] = '+',
  69. ['j'] = '+',
  70. ['|'] = '!',
  71. ['g'] = '#',
  72. ['o'] = '~',
  73. ['p'] = '-',
  74. ['r'] = '-',
  75. ['s'] = '_',
  76. ['0'] = '#',
  77. ['w'] = '+',
  78. ['u'] = '+',
  79. ['t'] = '+',
  80. ['v'] = '+',
  81. ['l'] = '+',
  82. ['k'] = '+',
  83. ['x'] = '|',
  84. [255] = 0,
  85. };