Using the function mvprintw(rowOffset, colOffset, textToPrint) from Ncurses, when I print a newline character, if colOffset is anything other than 0, I get a rectangle that looks like this:
xxxxxxxx
x x
xxxxxxxx
when I want the rest of the rectangle to align with the top
for
#include <ncurses.h>
void main()
{
initscr();
mvprintw(7,3,"xxxxxxxx\nx x\nxxxxxxxx\n");
refresh();
}
How can I fix this?