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.

85 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. ['`'] = 0x01,
  55. ['a'] = 0x02,
  56. ['f'] = 'o',
  57. ['g'] = '+',
  58. ['i'] = '#',
  59. ['j'] = 0x0B,
  60. ['k'] = 0x0C,
  61. ['l'] = 0x0D,
  62. ['m'] = 0x0E,
  63. ['n'] = 0x0F,
  64. ['o'] = 0x10,
  65. ['p'] = 0x11,
  66. ['q'] = 0x12,
  67. ['r'] = 0x13,
  68. ['s'] = 0x14,
  69. ['t'] = 0x15,
  70. ['u'] = 0x16,
  71. ['v'] = 0x17,
  72. ['w'] = 0x18,
  73. ['x'] = 0x19,
  74. ['y'] = 0x1A,
  75. ['z'] = 0x1B,
  76. ['{'] = 0x1C,
  77. ['|'] = 0x1D,
  78. ['}'] = 0x1E,
  79. ['~'] = 0x1F,
  80. [255] = 0,
  81. };