Die Größe der Anzeige ist beim skincurses Plugin auf 50x20 festgelegt. Eine dynamische Anpassung an die tatsächliche Größe des Terminals wäre besser. Hier ist der Patch:
--- PLUGINS/src/skincurses_142/skincurses.c 2006-06-03 16:20:39.000000000 +0200
+++ PLUGINS/src/skincurses/skincurses.c 2006-09-09 12:17:58.000000000 +0200
@@ -53,8 +53,8 @@
clrRed
};
-#define OsdWidth 50//XXX
-#define OsdHeight 20//XXX
+static int OsdWidth = 50;
+static int OsdHeight = 20;
class cCursesOsd : public cOsd {
private:
@@ -780,7 +780,11 @@
bool cPluginSkinCurses::Initialize(void)
{
// Initialize any background activities the plugin shall perform.
- initscr();
+ WINDOW* w = initscr();
+ if( !w )
+ return false;
+ OsdWidth = 1 + w->_maxx - w->_begx;
+ OsdHeight = 1 + w->_maxy - w->_begy;
return true;
}