#include <ncurses.h>
int main() {
initscr();
cbreak();
noecho();
// 6 xs
printw("xxxxxxx");
getch();
endwin();
return 0;
}
Prints
xxxxxx
If I add just one more x to the printw
statement only
x
is printed. Why?
OS: Arch Linux
$ echo $TERM
xterm-256color