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.

78 lines
1.2 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. };
  40. static char gfx[] = {
  41. ['}'] = 'f',
  42. ['.'] = 'v',
  43. [','] = '<',
  44. ['+'] = '>',
  45. ['-'] = '^',
  46. ['h'] = '#',
  47. ['~'] = 'o',
  48. ['a'] = ':',
  49. ['f'] = '\\',
  50. ['`'] = '+',
  51. ['z'] = '>',
  52. ['{'] = '*',
  53. ['q'] = '-',
  54. ['i'] = '#',
  55. ['n'] = '+',
  56. ['y'] = '<',
  57. ['m'] = '+',
  58. ['j'] = '+',
  59. ['|'] = '!',
  60. ['g'] = '#',
  61. ['o'] = '~',
  62. ['p'] = '-',
  63. ['r'] = '-',
  64. ['s'] = '_',
  65. ['0'] = '#',
  66. ['w'] = '+',
  67. ['u'] = '+',
  68. ['t'] = '+',
  69. ['v'] = '+',
  70. ['l'] = '+',
  71. ['k'] = '+',
  72. ['x'] = '|',
  73. [255] = 0,
  74. };