Hello I'd like to know how to get rid of the space created when printing a new line in c++ using ncurses library.
#include <iostream>
#include <ncurses.h>
using namespace std;
int main(){
initscr();
noecho();
cout << "Hello" << endl;
cout << "World" << endl;
endwin();
return 0;
}
I have this output
Hello
----World
(The dashes are the space I mean)