Ncurses with box-drawing characters
I am using wsl 2 in windows 10, and i am using windows terminal the question's title tells my problem
#include <ncurses.h>
int main() {
initscr();
int height, width;
int positionX, positionY;
height = 10;
width = 20;
positionX = 0;
positionY = 0;
WINDOW * win = newwin(height, width, positionX, positionY);
refresh();
cchar_t verticalLine;
/* setcchar(); */
/* curs_getcchar(); */
setcchar(&verticalLine, L"│", 0, 0, nullptr);
cchar_t horizontalLine;
setcchar(&horizontalLine, L"─", 0, 0, nullptr);
cchar_t tlc, trc, brc, blc;
setcchar(&tlc, L"u", 0, 0, nullptr);
setcchar(&trc, L"u", 0, 0, nullptr);
setcchar(&blc, L"u", 0, 0, nullptr);
setcchar(&brc, L"u", 0, 0, nullptr);
wborder_set(win, &verticalLine, &horizontalLine, &verticalLine, &verticalLine, &tlc, &trc, &blc, &brc);
wrefresh(win);
getch();
endwin();
}
i tried this code but failed to get the output