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.

69 lines
1.0 KiB

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