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.

73 lines
1.2 KiB

  1. #define SHELL "/bin/bash"
  2. #define TAB 8
  3. #define FONT "fixed"
  4. #define BORDER 3
  5. #define LINESPACE 0 /* additional pixel between each line */
  6. /* Terminal colors */
  7. static const char *colorname[] = {
  8. "black",
  9. "red",
  10. "green",
  11. "yellow",
  12. "blue",
  13. "magenta",
  14. "cyan",
  15. "white",
  16. };
  17. /* Default colors (colorname index) */
  18. /* foreground, background, cursor, visual bell */
  19. #define DefaultFG 7
  20. #define DefaultBG 0
  21. #define DefaultCS 1
  22. #define BellCol DefaultFG
  23. /* special keys */
  24. static Key key[] = {
  25. { XK_Delete, "\033[3~" },
  26. { XK_Home, "\033[1~" },
  27. { XK_End, "\033[4~" },
  28. { XK_Prior, "\033[5~" },
  29. { XK_Next, "\033[6~" },
  30. { XK_Left, "\033[D" },
  31. { XK_Right, "\033[C" },
  32. { XK_Up, "\033[A" },
  33. { XK_Down, "\033[B" },
  34. };
  35. static char gfx[] = {
  36. ['}'] = 'f',
  37. ['.'] = 'v',
  38. [','] = '<',
  39. ['+'] = '>',
  40. ['-'] = '^',
  41. ['h'] = '#',
  42. ['~'] = 'o',
  43. ['a'] = ':',
  44. ['f'] = '\\',
  45. ['`'] = '+',
  46. ['z'] = '>',
  47. ['{'] = '*',
  48. ['q'] = '-',
  49. ['i'] = '#',
  50. ['n'] = '+',
  51. ['y'] = '<',
  52. ['m'] = '+',
  53. ['j'] = '+',
  54. ['|'] = '!',
  55. ['g'] = '#',
  56. ['o'] = '~',
  57. ['p'] = '-',
  58. ['r'] = '-',
  59. ['s'] = '_',
  60. ['0'] = '#',
  61. ['w'] = '+',
  62. ['u'] = '+',
  63. ['t'] = '+',
  64. ['v'] = '+',
  65. ['l'] = '+',
  66. ['k'] = '+',
  67. ['x'] = '|',
  68. };