#include <signal.h>
#include <string.h>
-#define META 0x80
+#define ALT 0x80
#define ESC 0x1b
static char *lowchars[] =
char *visualize(int c)
{
static char buf[32];
- int meta;
+ int alt;
- if (meta = (c & META))
- c &=~ META;
+ if (alt = (c & ALT))
+ c &=~ ALT;
if (c <= ' ')
(void) snprintf(buf, sizeof(buf),
- "<%s%s>", meta ? "ALT-" : "", lowchars[c]);
+ "<%s%s>", alt ? "ALT-" : "", lowchars[c]);
else if (c == 0x3F)
(void) snprintf(buf, sizeof(buf),
- "<%sDEL>", meta ? "ALT-" : "");
- else if (meta)
+ "<%sDEL>", alt ? "ALT-" : "");
+ else if (alt)
(void) snprintf(buf, sizeof(buf),
"<ALT-%c>", c);
else {