I am using ubuntu on my windows computer using the windows subsystem for linux to compile a simple program using ncurses in C that shows a box inside a ncurses window. As seen in the picture below, the box does not render fully. Is there something wrong with my code or is this an issue within WSL?
The drawn box displays incorrectly The box should stretch and connect the left and right sides
int main()
{
initscr();
noecho();
cbreak();
int sizeY, sizeX;
getmaxyx(stdscr, sizeY, sizeX);
WINDOW *mainMenu = newwin(10, 10, 5, 10);
box(mainMenu, 0, 0);
refresh();
wrefresh(mainMenu);
keypad(mainMenu, true);
getch();
endwin();
return 0;
}