1termname(3XCURSES) X/Open Curses Library Functions termname(3XCURSES)
2
3
4
6 termname - return the value of the environmental variable TERM
7
9 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
10 -R /usr/xpg4/lib -lcurses [ library... ]
11
12 c89 [ flag... ] file... -lcurses [ library... ]
13
14 #include <curses.h>
15
16 char *termname(void);
17
18
20 The termname() function returns a pointer to the value of the environ‐
21 mental variable TERM (truncated to 14 characters).
22
24 The termname() returns a pointer to the terminal's name.
25
27 None.
28
30 See attributes(5) for descriptions of the following attributes:
31
32
33
34
35 ┌─────────────────────────────┬─────────────────────────────┐
36 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
37 ├─────────────────────────────┼─────────────────────────────┤
38 │Interface Stability │Standard │
39 ├─────────────────────────────┼─────────────────────────────┤
40 │MT-Level │Unsafe │
41 └─────────────────────────────┴─────────────────────────────┘
42
44 del_curterm(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)
45
46
47
48SunOS 5.11 5 Jun 2002 termname(3XCURSES)