I'm now tried to print char code, but now it displays me that: (' ' is the blank char, and * is some char that i can't print)
LLLLLLLLLLLLLLLLLLL
;window caption ;
<LLLLLLLLLLLLLLLLLK
;window text ;
; ;
; ;
; ;
; ;
*LLLLLLLLLLLLLLLLLL
It displays me a wrong characters! There's a code of drawObj function:
Code:
void drawObj(window target)
{
terminal_setcolor(26);
goToPos(target.x, target.y);
terminal_putchar(0xAD);
for(size_t topcount = 0; topcount < target.width - 2; topcount++)
{
terminal_putchar(0x4C);
}
terminal_putchar(0xFB);
for(size_t middlecount = 1; middlecount < target.height - 2; middlecount++)
{
goToPos(target.x, target.y+middlecount);
terminal_putchar(0x3B);
for(size_t middlecount2 = 0; middlecount2 < target.width - 2; middlecount2++)
{
terminal_putchar(' ');
}
terminal_putchar(0x3B);
}
goToPos(target.x, target.y+target.height-2);
terminal_putchar(0x0C);
for(size_t bcount = 0; bcount < target.width - 2; bcount++)
{
terminal_putchar(0x4C);
}
terminal_putchar(0x9D);
goToPos(target.x, target.y+2);
terminal_putchar(0x3C);
for(size_t captioncount = 0; captioncount < target.width - 2; captioncount++)
{
terminal_putchar(0x4C);
}
terminal_putchar(0x4B);
terminal_setcolor(26);
goToPos(target.x,target.y);
size_t newy = 0;
terminal_setcolor(26);
goToPos(target.x+1, target.y+1);
terminal_writestring(target.caption);
terminal_setcolor(26);
goToPos(target.x+1, target.y + 3);
terminal_writestring(target.text);
}