File: caps.go

package info (click to toggle)
golang-github-xo-terminfo 0.0~git20210125.ca9a967-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 256 kB
  • sloc: sh: 50; makefile: 6
file content (33 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package terminfo

//go:generate go run gen.go

// BoolCapName returns the bool capability name.
func BoolCapName(i int) string {
	return boolCapNames[2*i]
}

// BoolCapNameShort returns the short bool capability name.
func BoolCapNameShort(i int) string {
	return boolCapNames[2*i+1]
}

// NumCapName returns the num capability name.
func NumCapName(i int) string {
	return numCapNames[2*i]
}

// NumCapNameShort returns the short num capability name.
func NumCapNameShort(i int) string {
	return numCapNames[2*i+1]
}

// StringCapName returns the string capability name.
func StringCapName(i int) string {
	return stringCapNames[2*i]
}

// StringCapNameShort returns the short string capability name.
func StringCapNameShort(i int) string {
	return stringCapNames[2*i+1]
}