My build of suckless st terminal
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.

83 lines
2.1 KiB

  1. #define FONT "Liberation Mono:pixelsize=12:antialias=false:autohint=false"
  2. /* Space in pixels around the terminal buffer */
  3. #define BORDER 2
  4. /* Default shell to use if SHELL is not set in the env */
  5. #define SHELL "/bin/sh"
  6. /* Terminal colors (16 first used in escape sequence) */
  7. static const char *colorname[] = {
  8. /* 8 normal colors */
  9. "black",
  10. "red3",
  11. "green3",
  12. "yellow3",
  13. "blue2",
  14. "magenta3",
  15. "cyan3",
  16. "gray90",
  17. /* 8 bright colors */
  18. "gray50",
  19. "red",
  20. "green",
  21. "yellow",
  22. "#5c5cff",
  23. "magenta",
  24. "cyan",
  25. "white",
  26. [255] = 0,
  27. /* more colors can be added after 255 to use with DefaultXX */
  28. "#cccccc",
  29. "#333333",
  30. };
  31. /* Default colors (colorname index)
  32. foreground, background, cursor, unfocused cursor */
  33. #define DefaultFG 7
  34. #define DefaultBG 0
  35. #define DefaultCS 256
  36. #define DefaultUCS 257
  37. /* Special keys (change & recompile st.info accordingly)
  38. Keep in mind that kpress() in st.c hardcodes some keys.
  39. Mask value:
  40. * Use XK_ANY_MOD to match the key no matter modifiers state
  41. * Use XK_NO_MOD to match the key alone (no modifiers)
  42. key, mask, output */
  43. static Key key[] = {
  44. { XK_BackSpace, XK_NO_MOD, "\177" },
  45. { XK_Insert, XK_NO_MOD, "\033[2~" },
  46. { XK_Delete, XK_NO_MOD, "\033[3~" },
  47. { XK_Home, XK_NO_MOD, "\033[1~" },
  48. { XK_End, XK_NO_MOD, "\033[4~" },
  49. { XK_Prior, XK_NO_MOD, "\033[5~" },
  50. { XK_Next, XK_NO_MOD, "\033[6~" },
  51. { XK_F1, XK_NO_MOD, "\033OP" },
  52. { XK_F2, XK_NO_MOD, "\033OQ" },
  53. { XK_F3, XK_NO_MOD, "\033OR" },
  54. { XK_F4, XK_NO_MOD, "\033OS" },
  55. { XK_F5, XK_NO_MOD, "\033[15~" },
  56. { XK_F6, XK_NO_MOD, "\033[17~" },
  57. { XK_F7, XK_NO_MOD, "\033[18~" },
  58. { XK_F8, XK_NO_MOD, "\033[19~" },
  59. { XK_F9, XK_NO_MOD, "\033[20~" },
  60. { XK_F10, XK_NO_MOD, "\033[21~" },
  61. { XK_F11, XK_NO_MOD, "\033[23~" },
  62. { XK_F12, XK_NO_MOD, "\033[24~" },
  63. };
  64. /* Set TERM to this */
  65. #define TNAME "st-256color"
  66. /* double-click timeout (in milliseconds) between clicks for selection */
  67. #define DOUBLECLICK_TIMEOUT 300
  68. #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)
  69. #define TAB 8