1TICKIT_TERM_CTLNAME(3)     Library Functions Manual     TICKIT_TERM_CTLNAME(3)
2
3
4

NAME

6       tickit_term_ctlname - return the name of a terminal control
7

SYNOPSIS

9       #include <tickit.h>
10
11       const char * tickit_term_ctlname(TickitTermCtl ctl);
12       TickitTermCtl tickit_term_lookup_ctl(const char * name);
13
14       TickitType tickit_term_ctltype(TickitTermCtl ctl);
15
16       Link with -ltickit.
17

DESCRIPTION

19       tickit_term_ctlname()  returns  the name of the given terminal control.
20       These names are the lowercase strings given in tickit_term(7).
21
22       tickit_term_lookup_ctl() returns the control constant for a given name.
23       If the name is not recognised then -1 is returned.
24
25       tickit_term_ctltype()  returns  the type of the given terminal control,
26       as one of the following constants:
27
28       TICKIT_TYPE_BOOL
29              The value is an integer representing a  simple  boolean  choice,
30              where  any  nonzero value is true. Use tickit_term_setctl_int(3)
31              and tickit_term_getctl_int(3).
32
33       TICKIT_TYPE_INT
34              The value is an integer representing a quantity, or a  value  in
35              some  particular  enumeration. Use tickit_term_setctl_int(3) and
36              tickit_term_getctl_int(3).
37
38       TICKIT_TYPE_STR
39              The value is a string. Use tickit_term_setctl_str(3).
40
41       For unrecognised control types, the function returns 0.
42

RETURN VALUE

44       tickit_term_ctlname()    returns    a    constant    string    pointer.
45       tickit_term_lookup_ctl()   returns   an   control   constant   or   -1.
46       tickit_term_ctltype() returns a control type constant or 0.
47

SEE ALSO

49       tickit_term(7), tickit(7)
50
51
52
53                                                        TICKIT_TERM_CTLNAME(3)
Impressum