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.

color.go 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package color
  2. // TODO read colors from a github.com/go-git/go-git/plumbing/format/config.Config struct
  3. // TODO implement color parsing, see https://github.com/git/git/blob/v2.26.2/color.c
  4. // Colors. See https://github.com/git/git/blob/v2.26.2/color.h#L24-L53.
  5. const (
  6. Normal = ""
  7. Reset = "\033[m"
  8. Bold = "\033[1m"
  9. Red = "\033[31m"
  10. Green = "\033[32m"
  11. Yellow = "\033[33m"
  12. Blue = "\033[34m"
  13. Magenta = "\033[35m"
  14. Cyan = "\033[36m"
  15. BoldRed = "\033[1;31m"
  16. BoldGreen = "\033[1;32m"
  17. BoldYellow = "\033[1;33m"
  18. BoldBlue = "\033[1;34m"
  19. BoldMagenta = "\033[1;35m"
  20. BoldCyan = "\033[1;36m"
  21. FaintRed = "\033[2;31m"
  22. FaintGreen = "\033[2;32m"
  23. FaintYellow = "\033[2;33m"
  24. FaintBlue = "\033[2;34m"
  25. FaintMagenta = "\033[2;35m"
  26. FaintCyan = "\033[2;36m"
  27. BgRed = "\033[41m"
  28. BgGreen = "\033[42m"
  29. BgYellow = "\033[43m"
  30. BgBlue = "\033[44m"
  31. BgMagenta = "\033[45m"
  32. BgCyan = "\033[46m"
  33. Faint = "\033[2m"
  34. FaintItalic = "\033[2;3m"
  35. Reverse = "\033[7m"
  36. )