I just started using the ncurses
library that came with my MinGW64, gcc
5.3.0 on a Windows 7 machine. With the following code:
initscr();
noecho();
raw();
keypad(stdscr, TRUE);
printw("Hello there.");
getmaxyx(stdscr, row, col);
printw("\nRow: %3d", row);
printw("\nCol: %3d", col);
printw("\nSomething %c", 0x2605);
refresh();
endwin();
I get this as output:
I've tried changing the font in the command line, which didn't help. And I can't find anything on Google for why it's doing that. Changing my linking from ncursesw
to ncurses
doesn't help.
What can I do to fix this so that it prints out normally without all of the extra spacing?
Thanks.