diff options
Diffstat (limited to 'src/unctrl/unctrl.c')
| -rw-r--r-- | src/unctrl/unctrl.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/unctrl/unctrl.c b/src/unctrl/unctrl.c deleted file mode 100644 index fc77e6bf..00000000 --- a/src/unctrl/unctrl.c +++ /dev/null @@ -1,29 +0,0 @@ -#include <unctrl.h> -#include <curses.h> -#include <ctype.h> -#include <stddef.h> - -char * unctrl(chtype c) -{ - static char buf[3]; - char * ret = NULL; - int ch = c & A_CHARTEXT; - - if (iscntrl(ch)) { - buf[0] = '^'; - buf[1] = ch + 'A'; - buf[2] = '\0'; - ret = buf; - } else if (isprint(ch)) { - buf[0] = ch; - buf[1] = '\0'; - ret = buf; - } - - return ret; -} - -/* -XOPEN(4) -LINK(curses) -*/ |
