Is this a Perl question? In order to get a useful answer you probably have to provide some details about your app.
If your question is simply: on a screen of width $w and height $h and a centered window of 80x25, how wide is my left and top margin (or bottom?), the following should be helpful:
$left = ($w - 80) / 2; $top = ($h - 25) / 2;
which both might be negative on a small screen.
In reply to Re: Center curses output
by hdb
in thread Center curses output
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |