Curses: How to draw a horizontal line, Linux behaves differently than Windows

In Windows this code gives the expected result:

However, in Linux the result is different:, it’s only printing one “#” followed by the cursor - no line :frowning:

Somehow on Linux it can’t display a horizontal line… also when I print a row of character using a loop.

Any hint what I’m doing wrong? Best regards!

Try this:

import curses

def main(stdscr):
    stdscr = curses.initscr()
    stdscr.clear()
    stdscr.addstr(2, 3, "############")
    stdscr.refresh()
    c = stdscr.getkey()    

curses.wrapper(main)