This is the first of two parts for coLinux 0.7.3. * Changed NT and FLTK consoles to 60x120 * CO_OPERATION_CONSOLE_SIZES: Linux kernel gets size from ntkernel now. Please add this patch to coLinux 0.7.3 and add the file console-size-runtime-linux-2.6.22.18-co-0.7.3.patch to list of patches (see the last hunk in this file) or patch the Linux kernel manualy after all other coLinux patches. Than make clean Linux kernel and coLinux daemons and build it all. Replace vmlinux and all other daemons, reinstall the coLinux driver. Based on patch from Reini Urban 2004-11-07 http://xarch.tu-graz.ac.at/home/rurban/ Ported to coLinux 0.8.x and 0.7.x by Henry Nestler Index: src/colinux/kernel/monitor.c =================================================================== --- src/colinux/kernel/monitor.c (revision 1055) +++ src/colinux/kernel/monitor.c (working copy) @@ -912,7 +912,7 @@ cmon->state = CO_MONITOR_STATE_EMPTY; cmon->id = co_os_current_id(); - rc = co_console_create(80, 25, 0, &cmon->console); + rc = co_console_create(CO_CONSOLE_WIDTH, CO_CONSOLE_HEIGHT, CO_CONSOLE_HEIGHT_BUF, &cmon->console); if (!CO_OK(rc)) goto out_free_monitor; Index: src/colinux/os/winnt/user/console-nt/widget.cpp =================================================================== --- src/colinux/os/winnt/user/console-nt/widget.cpp (revision 1055) +++ src/colinux/os/winnt/user/console-nt/widget.cpp (working copy) @@ -123,8 +123,8 @@ fs = GetConsoleFontSize(output, cfi.nFont); r.top = 0; r.left = 0; - r.bottom = fs.Y * 25; - r.right = fs.X * 80; + r.bottom = fs.Y * CO_CONSOLE_HEIGHT; + r.right = fs.X * CO_CONSOLE_WIDTH; AdjustWindowRect(&r, WS_CAPTION|WS_SYSMENU|WS_THICKFRAME |WS_MINIMIZEBOX|WS_MAXIMIZEBOX, 0); @@ -138,12 +138,12 @@ cci.bVisible = 0; SetConsoleCursorInfo(output, &cci); - size.X = 80 ; - size.Y = 25 ; + size.X = CO_CONSOLE_WIDTH; + size.Y = CO_CONSOLE_HEIGHT; region.Top = 0; region.Left = 0; - region.Right = 79; - region.Bottom = 24; + region.Right = CO_CONSOLE_WIDTH-1; + region.Bottom = CO_CONSOLE_HEIGHT-1; if( ! SetConsoleWindowInfo( output , TRUE , ®ion ) ) { error = GetLastError(); Index: src/colinux/common/console.c =================================================================== --- src/colinux/common/console.c (revision 1055) +++ src/colinux/common/console.c (working copy) @@ -190,6 +190,12 @@ } case CO_OPERATION_CONSOLE_STARTUP: + message->sizes.rows = console->y; + message->sizes.cols = console->x; + message->sizes.backbuf = 0; + message->type = CO_OPERATION_CONSOLE_SIZES; + break; + case CO_OPERATION_CONSOLE_INIT: case CO_OPERATION_CONSOLE_DEINIT: case CO_OPERATION_CONSOLE_SWITCH: Index: src/colinux/common/console.h =================================================================== --- src/colinux/common/console.h (revision 1055) +++ src/colinux/common/console.h (working copy) @@ -24,6 +24,10 @@ * (as it is needed by the Linux code). */ +#define CO_CONSOLE_WIDTH 120 /*80*/ +#define CO_CONSOLE_HEIGHT 60 /*25*/ +#define CO_CONSOLE_HEIGHT_BUF 0 + typedef struct co_console_cell { unsigned char ch; unsigned char attr; Index: patch/series-2.6.22.18 =================================================================== --- patch/series-2.6.22.18 (revision 1055) +++ patch/series-2.6.22.18 (working copy) @@ -17,3 +17,4 @@ cloop-2.6.22.diff squashfs3.2-core.diff squashfs3.2-2.6.22.diff +console-size-runtime-linux-2.6.22.18-co-0.7.3.patch