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.

68 lines
1.6 KiB

  1. #define TAB 8
  2. #define TNAME "st-256color"
  3. #define FONT "-*-*-medium-r-*-*-*-120-75-75-*-60-*-*"
  4. #define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-60-*-*"
  5. #define BORDER 2
  6. #define SHELL "/bin/sh"
  7. /* Terminal colors */
  8. static const char *colorname[] = {
  9. "black",
  10. "red3",
  11. "green3",
  12. "yellow3",
  13. "blue2",
  14. "magenta3",
  15. "cyan3",
  16. "gray90",
  17. "gray50",
  18. "red",
  19. "green",
  20. "yellow",
  21. "#5c5cff",
  22. "magenta",
  23. "cyan",
  24. "white"
  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 (change & recompile st.info accordingly) */
  32. /* key, mask, output */
  33. static Key key[] = {
  34. { XK_BackSpace, 0, "\177" },
  35. { XK_Insert, 0, "\033[2~" },
  36. { XK_Delete, 0, "\033[3~" },
  37. { XK_Home, 0, "\033[1~" },
  38. { XK_End, 0, "\033[4~" },
  39. { XK_Prior, 0, "\033[5~" },
  40. { XK_Next, 0, "\033[6~" },
  41. { XK_F1, 0, "\033OP" },
  42. { XK_F2, 0, "\033OQ" },
  43. { XK_F3, 0, "\033OR" },
  44. { XK_F4, 0, "\033OS" },
  45. { XK_F5, 0, "\033[15~" },
  46. { XK_F6, 0, "\033[17~" },
  47. { XK_F7, 0, "\033[18~" },
  48. { XK_F8, 0, "\033[19~" },
  49. { XK_F9, 0, "\033[20~" },
  50. { XK_F10, 0, "\033[21~" },
  51. { XK_F11, 0, "\033[23~" },
  52. { XK_F12, 0, "\033[24~" },
  53. };
  54. /* Line drawing characters (sometime specific to each font...) */
  55. static char gfx[] = {
  56. ['f'] = 'o',
  57. ['g'] = '+',
  58. ['i'] = '#',
  59. [255] = 0,
  60. };
  61. /* double-click timeout (in milliseconds) between clicks for selection */
  62. #define DOUBLECLICK_TIMEOUT 300
  63. #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)