1erasechar(3XCURSES) X/Open Curses Library Functions erasechar(3XCURSES)
2
3
4
6 erasechar, erasewchar, killchar, killwchar - return current ERASE or
7 KILL characters
8
10 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
11 -R /usr/xpg4/lib -lcurses [ library... ]
12
13 c89 [ flag... ] file... -lcurses [ library... ]
14
15 #include <curses.h>
16
17 char erasechar(void);
18
19
20 int erasewchar(wchar_t *ch);
21
22
23 char killchar(void);
24
25
26 int killwchar(wchar_t *ch);
27
28
30 The erasechar() function returns the current ERASE character from the
31 tty driver. This character is used to delete the previous character
32 during keyboard input. The returned value can be used when including
33 deletion capability in interactive programs.
34
35
36 The killchar() function is similar to erasechar(). It returns the cur‐
37 rent KILL character.
38
39
40 The erasewchar() and killwchar() functions are similar to erasechar()
41 and killchar() respectively, but store the ERASE or KILL character in
42 the object pointed to by ch.
43
45 ch Is a pointer to a location where a character may be stored.
46
47
49 For erasechar() and killchar(), the terminal's current ERASE or KILL
50 character is returned.
51
52
53 On success, the erasewchar() and killwchar() functions return OK. Oth‐
54 erwise, they return ERR.
55
57 See attributes(5) for descriptions of the following attributes:
58
59
60
61
62 ┌─────────────────────────────┬─────────────────────────────┐
63 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
64 ├─────────────────────────────┼─────────────────────────────┤
65 │Interface Stability │Standard │
66 ├─────────────────────────────┼─────────────────────────────┤
67 │MT-Level │Unsafe │
68 └─────────────────────────────┴─────────────────────────────┘
69
71 getch(3XCURSES), getstr(3XCURSES), get_wch(3XCURSES),
72 libcurses(3XCURSES), attributes(5), standards(5)
73
74
75
76SunOS 5.11 5 Jun 2002 erasechar(3XCURSES)