caps.go 745 B

12345678910111213141516171819202122232425262728293031
  1. package terminfo
  2. // BoolCapName returns the bool capability name.
  3. func BoolCapName(i int) string {
  4. return boolCapNames[2*i]
  5. }
  6. // BoolCapNameShort returns the short bool capability name.
  7. func BoolCapNameShort(i int) string {
  8. return boolCapNames[2*i+1]
  9. }
  10. // NumCapName returns the num capability name.
  11. func NumCapName(i int) string {
  12. return numCapNames[2*i]
  13. }
  14. // NumCapNameShort returns the short num capability name.
  15. func NumCapNameShort(i int) string {
  16. return numCapNames[2*i+1]
  17. }
  18. // StringCapName returns the string capability name.
  19. func StringCapName(i int) string {
  20. return stringCapNames[2*i]
  21. }
  22. // StringCapNameShort returns the short string capability name.
  23. func StringCapNameShort(i int) string {
  24. return stringCapNames[2*i+1]
  25. }