00001 00017 #include <stdio.h> 00018 #include <grass/gis.h> 00019 00020 00034 char *G_unctrl(int c) 00035 { 00036 static char buf[20]; 00037 00038 if (c < ' ') 00039 sprintf(buf, "ctrl-%c", c | 0100); 00040 else if (c < 0177) 00041 sprintf(buf, "%c", c); 00042 else if (c == 0177) 00043 sprintf(buf, "DEL/RUB"); 00044 else 00045 sprintf(buf, "Mctrl-%c", (c & 77) | 0100); 00046 00047 return buf; 00048 }