This works:
#!/usr/bin/env perl
use warnings;
use 5.012;
use Curses;
initscr();
addstr( 5, 5, 'Hello, World!' );
refresh();
sleep 2;
endwin();
but if I add an attribute to the “addstr”-function it doesn’t work any more:
addstr( 5, 5, 'Hello, World!', A_BOLD );
What do I need to change, to get a bold “Hello World”?
addstr()doesn’t accept attributes. Useattron()/attroff()instead: