1 /****************************************************************/
2 /* Unctrl() routines of the PCcurses package */
4 /****************************************************************/
5 /* This version of curses is based on ncurses, a curses version */
6 /* Originally written by Pavel Curtis at Cornell University. */
7 /* I have made substantial changes to make it run on IBM PC's, */
8 /* And therefore consider myself free to make it public domain. */
9 /* Bjorn Larsson (...mcvax!enea!infovax!bl) */
10 /****************************************************************/
11 /* 1.0: Release: 870515 */
12 /****************************************************************/
13 /* Modified to run under the MINIX operating system by Don Cope */
14 /* These changes are also released into the public domain. */
16 /****************************************************************/
21 static char strbuf
[3] = {0, 0, 0};
23 /****************************************************************/
24 /* Unctrl() returns a char pointer to a string corresponding to */
25 /* Argument character 'c'. */
26 /****************************************************************/
34 if ((ic
>= ' ') && (ic
!= 0x7f)) { /* normal characters */
39 strbuf
[0] = '^'; /* '^' prefix */
40 if (c
== 0x7f) /* DEL */
42 else /* other control */