On Tue, Mar 18, 2008 at 09:38:48AM +0100, Markus Hennecke wrote:
> On Sun, 16 Mar 2008, Simon Kuhnle wrote:
>
>> I don't know if I'm the only one with that problem but net/mcabber
>> doesn't resize correctly if I resize my xterm or rxvt. I hit ctrl-L, and
>> it refreshes the screen but the size is not correct to the terminal size
>> it's in.
>>
>> I asked on the mcabber MUC and it seems that under Linux this isn't a
>> problem.
>>
>> So is it possible that mcabber uses an ncurses function to resize that
>> OpenBSD doesn't know?
>
> This is because OpenBSDs ncurses is compiled without SIGWINCH support.
> See src/lib/libcurses/ncurses_cfg.h, the commented define for USE_SIGWINCH. 
> mcabber relies on the curses implementation to inject a KEY_RESIZE into the 
> key buffer, this is only done if that curses handles SIGWINCH.

Thank you for the explanation, Markus.

But why is this the case? Is it insecure? Or does it fail on some
platforms? I wasn't able to find an answer for this.

>> I attach a rather brute script to force resizing mcabber (which works
>> for me, with hitting ctrl-l). But perhaps someones know a more clever
>> solution?
>
> You could manually enable it for your system in that file, but I don't know 
> what else could break. Another solution would be to handle SIGWINCH in 
> mcabber itself. I think I will take a look into that.

How hard would it be to do that?
It would be nice to have a somewhat cleaner approach to this problem
than my patch does it ;-)

Thanks again for the information!
-- 
simon

Reply via email to