/*
-** Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+** Copyright (C) 1991, 1997-2000 Free Software Foundation, Inc.
**
** This file is part of TACK.
**
#include <tack.h>
-MODULE_ID("$Id: charset.c,v 1.2 1999/05/09 18:30:49 tom Exp $")
+MODULE_ID("$Id: charset.c,v 1.8 2001/06/18 18:44:26 tom Exp $")
/*
Menu definitions for alternate character set and SGR tests.
static void charset_attributes(struct test_list *t, int *state, int *ch);
static void charset_sgr(struct test_list *t, int *state, int *ch);
-const struct test_list acs_test_list[] = {
+struct test_list acs_test_list[] = {
{0, 0, 0, 0, "e) edit terminfo", 0, &edit_menu},
{MENU_NEXT, 3, "bel", 0, 0, charset_bel, 0},
{MENU_NEXT, 3, "flash", 0, 0, charset_flash, 0},
}
put_crlf();
+#ifdef max_attributes
if (max_attributes >= 0) {
sprintf(temp, "(ma) Maximum attributes %d ", max_attributes);
ptext(temp);
}
+#endif
generic_done_message(t, state, ch);
}
/*
** charset_smacs(test_list, status, ch)
**
-** display all posible acs characters
+** display all possible acs characters
** (smacs) (rmacs)
*/
static void
break;
}
if (glyph[j].name[0] == '\0') {
- if (isgraph(acs_chars[i])) {
+ if (isgraph(UChar(acs_chars[i]))) {
sprintf(temp, " %c",
acs_chars[i]);
} else {
sprintf(temp, " 0x%02x",
- (acs_chars[i] & 0xff));
+ UChar(acs_chars[i]));
}
strcpy(&temp[5], " *** has no mapping ***");
putln(temp);