You need your arguments in the right place, and itβs not easy to remember what a number is. I always need to look for this by first trying all the wrong permutations. I just look at the manual pages for the C interface, and then change it to Perl syntax.
The newwin function registered on the curs_window page accepts:
newwin( height, width, starty, startx )
You set up a window with one row high and one column width starting from column 40 of row 40. However, then you addstr to put text in row 20 of column 20 in this window. This is outside the 1x1 frame that you configured, so you donβt see anything.
Try this to see if it works for you. If this works, try adjusting the window values ββto get the frame you want.
use Curses; initscr; $w = newwin( 1,
source share