core: replace some calls to ncurses *printw functions by *addstr