Hi,

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?

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?
-- 
simon
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/mcabber/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile    6 Feb 2008 11:35:17 -0000       1.3
+++ Makefile    16 Mar 2008 15:54:06 -0000
@@ -2,7 +2,7 @@
 
 COMMENT=               console jabber client
 DISTNAME=              mcabber-0.9.6
-PKGNAME=               ${DISTNAME}p0
+PKGNAME=               ${DISTNAME}p1
 CATEGORIES=            net
 
 HOMEPAGE=              http://www.lilotux.net/~mikael/mcabber/
Index: patches/patch-src_screen_c
===================================================================
RCS file: patches/patch-src_screen_c
diff -N patches/patch-src_screen_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_screen_c  16 Mar 2008 15:54:06 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- src/screen.c.orig  Mon Feb 25 23:09:36 2008
++++ src/screen.c       Mon Feb 25 23:11:38 2008
+@@ -1548,6 +1548,9 @@ void scr_Resize(void)
+ {
+   struct dimensions dim;
+ 
++  endwin();
++  refresh();
++
+   // First, update the global variables
+   getmaxyx(stdscr, maxY, maxX);
+   // scr_DrawMainWindow() will take care of maxY and Log_Win_Height

Reply via email to