Patrick wrote:

> normally, windows uses a resolution of 80x25 chars for consoles. you can
> change manually to 80x43 and 80x50. but i want more ;)
> i just recognized that vim for win32 is able to change it's console width
> and height to any value given by the user. it simply uses SetConsoleScreenBufferSize
> to resize the buffer. so i thougt it should be possible to write a small launcher
> that initializes a console, creates a buffer, resizes it and then launches lynx.
> i used this small programm:
> 
> int WINAPI
> WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
> {
>     STARTUPINFO si;
>     PROCESS_INFORMATION pi;
>     HANDLE handle;
>     int width=0x50;
>     int height=25;
>     ZeroMemory (&si, sizeof(si));
>     si.cb = sizeof(si);
> 
>                          AllocConsole();
>                          handle=CreateConsoleScreenBuffer(0xc0000000,0,0,1,0);
>                          SetConsoleActiveScreenBuffer(handle);
>                          //SetConsoleTitle("Resized Lynx");
>                          ////handle = GetStdHandle(STD_OUTPUT_HANDLE);
>                          //COORD co = {width,height};
>                          //SetConsoleScreenBufferSize(handle, co);
> 
>                          CreateProcess(NULL, "lynx.exe", NULL, NULL, FALSE,
>                                        NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi);
> 
>     return 1;
> }
> 
> but lynx refuses to run in this console, even with the undocumentations above.
> so it doesn't like to be run out of a screenbuffer, but this would be pretty use-
> full. any ideas, what i've done wrong or how to patch lynx to run from the
> screenbuffer?
> 
> thanks in advance
> 
> Patrick Nagelschmidt
> 
> --
> if the box says 'windows 95 or better', it should run on linux, right?

Message from unsubscribed address "[EMAIL PROTECTED]" re-posted
by Lynx-Dev moderator.

Reply via email to