I've recently by writing some programs in C using the ncurses library on an Arch Linux machine. I've of course been using printw to print text out to the screen (specifically stdscr). However, I've been having a weird issue when using printw. If I try to print out multiple of the same character one after the other, printw will only print one of those characters.
Example:
printw("- - - - - - - - -"); // prints all the characters without any issues
printw("-----------------"); // only prints a single dash ('-')
Now, the only odd part, is that I've found this glitch to be true on every Arch Linux terminal I've used, except for the default XFCE terminal. This glitch happened in iTerm, putty, and termius (I was ssh'd into the Arch Linux machine when using each of the terminals).
So, does anyone know why this would happen? Is it a feature? Something for optimization? And if so, is there anyway to turn it off? Or does it possibly have something to do with the terminals or ssh?
Any help is much appreciated! Also, if you would like to take a look at the program in question, just let me know, and I can link the github for it.
Thanks!