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.

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.

Kind regards
  Markus

Reply via email to