NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO
#include <unctrl.h>const char *unctrl(chtype c);
The unctrl() function converts the character code c into a printable form (if unprintable). Control characters are displayed using the ^x notation where ^ identifies the control key and x represents an alphanumeric character that is pressed while the control key is held down.
Characters which have their eighth bit set are represented using the meta notation M-X where X is the byte with eighth bit stripped. This stripped byte will represent either a printable character or a control character. If it is a control character, X is actually represented using ^X notation. For example, 0xCD in ASCII is M-^K.
On success, the unctrl() function returns the generated string. Otherwise, it returns a null pointer.
None.
NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO