Skip to content
Snippets Groups Projects
Commit c07f2134 authored by deuce's avatar deuce
Browse files

Do terrible things with stdout and curses to force output of low ascii chars

no matter what curses has to say about it.
parent 335f4033
Branches
Tags
No related merge requests found
......@@ -58,7 +58,7 @@ int puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
unsigned char orig_attr;
int oldx, oldy;
getyx(stdscr,oldy,oldx);
getyx(stdscr,oldy,oldx);
orig_attr=lastattr;
for(y=sy-1;y<=ey-1;y++)
{
......@@ -556,19 +556,6 @@ void _putch(unsigned char ch, BOOL refresh_now)
cha=ch;
}
}
else
{
switch(ch) {
case 30:
cha=ACS_UARROW;
break;
case 31:
cha=ACS_DARROW;
break;
default:
cha=ch;
}
}
if(ch == ' ')
addch(A_BOLD|' ');
......@@ -576,6 +563,9 @@ void _putch(unsigned char ch, BOOL refresh_now)
attron(A_REVERSE);
addch(cha+'A'-1);
attroff(A_REVERSE);
refresh();
printf("\b%c",cha);
refresh();
}
else
addch(cha);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment