How to get with Curses the window-size from a resized window?

前端 未结 2 367
北恋
北恋 2021-01-25 05:02

I tried it this way, but it doesn\'t work - the returned values from getmaxyx remain always the same.

#!/usr/bin/env perl
use warnings;
use 5.012;
u         


        
2条回答
  •  不要未来只要你来
    2021-01-25 06:05

    Knowing almost nothing about Curses, at a first guess I'd say your problem is that you broke $SIG{WINCH}, because libcurses is going to want to use that to detect when the window may have changed size.

提交回复
热议问题