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.

39 lines
745 B

  1. #define SHELL "/bin/bash"
  2. #define TAB 8
  3. #define FONT "fixed"
  4. #define BORDER 3
  5. #define LINESPACE 1 /* 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 const char *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. };