diff options
Diffstat (limited to 'lib/libncurses/lib_acs.c')
-rw-r--r-- | lib/libncurses/lib_acs.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libncurses/lib_acs.c b/lib/libncurses/lib_acs.c index 640ab89..2b6d25b 100644 --- a/lib/libncurses/lib_acs.c +++ b/lib/libncurses/lib_acs.c @@ -30,23 +30,23 @@ void init_acs() ACS_PLUS (acs_map['n']) ACS_S1 (acs_map['o']) scan line 1 ACS_S9 (acs_map['s']) scan line 9 - ACS_DIAMOND (acs_map['`']) diamond - ACS_CKBOARD (acs_map['a']) checker board (stipple) - ACS_DEGREE (acs_map['f']) degree symbol + ACS_DIAMOND (acs_map['`']) diamond + ACS_CKBOARD (acs_map['a']) checker board (stipple) + ACS_DEGREE (acs_map['f']) degree symbol ACS_PLMINUS (acs_map['g']) plus/minus ACS_BULLET (acs_map['~']) bullet ACS_LARROW (acs_map[',']) arrow pointing left ACS_RARROW (acs_map['+']) arrow pointing right ACS_DARROW (acs_map['.']) arrow pointing down - ACS_UARROW (acs_map['-']) arrow pointing up - ACS_BOARD (acs_map['h']) board of squares - ACS_LANTERN (acs_map['I']) lantern symbol + ACS_UARROW (acs_map['-']) arrow pointing up + ACS_BOARD (acs_map['h']) board of squares + ACS_LANTERN (acs_map['I']) lantern symbol ACS_BLOCK (acs_map['0']) solid square block */ T(("initializing ACS map")); - acs_map['l'] = acs_map['m'] = acs_map['k'] = acs_map['j'] = + acs_map['l'] = acs_map['m'] = acs_map['k'] = acs_map['j'] = acs_map['u'] = acs_map['t'] = acs_map['v'] = acs_map['w'] = (chtype)'+' & A_CHARTEXT; acs_map['q'] = (chtype)'-' & A_CHARTEXT; acs_map['x'] = (chtype)'|' & A_CHARTEXT; @@ -72,8 +72,8 @@ void init_acs() if (acs_chars != NULL) { int i = 0; int length = strlen(acs_chars); - - while (i < length) + + while (i < length) switch (acs_chars[i]) { case 'l':case 'm':case 'k':case 'j': case 'u':case 't':case 'v':case 'w': @@ -81,8 +81,8 @@ void init_acs() case 's':case '`':case 'a':case 'f': case 'g':case '~':case ',':case '+': case '.':case '-':case 'h':case 'I': - case '0': - acs_map[(unsigned int)(unsigned char)acs_chars[i]] = + case '0': + acs_map[(unsigned int)(unsigned char)acs_chars[i]] = (acs_chars[++i] & A_CHARTEXT) | A_ALTCHARSET; default: i++; |