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.

91 lines
1.7 KiB

  1. #define TAB 8
  2. #define TNAME "st-256color"
  3. #define FONT "-misc-*-medium-r-semicondensed-*-13-*-*-*-*-*-iso8859-*"
  4. #define BOLDFONT "-misc-*-bold-r-semicondensed-*-13-*-*-*-*-*-iso8859-*"
  5. #define BORDER 2
  6. #define SHELL "/bin/sh"
  7. /* Terminal colors */
  8. static const char *colorname[] = {
  9. "black",
  10. "#CC0000",
  11. "#4E9A06",
  12. "#C4A000",
  13. "#3465A4",
  14. "#75507B",
  15. "#06989A",
  16. "#888a85",
  17. "#555753",
  18. "#EF2929",
  19. "#8AE234",
  20. "#FCE94F",
  21. "#729FCF",
  22. "#AD7FA8",
  23. "#34E2E2",
  24. "#EEEEEC"
  25. };
  26. /* Default colors (colorname index) */
  27. /* foreground, background, cursor */
  28. #define DefaultFG 7
  29. #define DefaultBG 0
  30. #define DefaultCS 1
  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. /* line drawing characters (sometime specific to each font...) */
  53. static char gfx[] = {
  54. ['+'] = '>',
  55. [','] = '<',
  56. ['-'] = '^',
  57. ['.'] = 'v',
  58. ['0'] = '#',
  59. ['`'] = 0x01,
  60. ['a'] = 0x02,
  61. ['f'] = 'o',
  62. ['g'] = '+',
  63. ['h'] = '#',
  64. ['i'] = '#',
  65. ['j'] = 0x0B,
  66. ['k'] = 0x0C,
  67. ['l'] = 0x0D,
  68. ['m'] = 0x0E,
  69. ['n'] = 0x0F,
  70. ['o'] = 0x10,
  71. ['p'] = 0x11,
  72. ['q'] = 0x12,
  73. ['r'] = 0x13,
  74. ['s'] = 0x14,
  75. ['t'] = 0x15,
  76. ['u'] = 0x16,
  77. ['v'] = 0x17,
  78. ['w'] = 0x18,
  79. ['x'] = 0x19,
  80. ['y'] = 0x1A,
  81. ['z'] = 0x1B,
  82. ['{'] = 0x1C,
  83. ['|'] = 0x1D,
  84. ['}'] = 0x1E,
  85. ['~'] = 0x1F,
  86. [255] = 0,
  87. };