[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lynx-dev
Subject:    LYNX-DEV http://www.flora.org/lynx-dev/html/month0398/msg01008.html
From:       afn06760 () afn ! org
Date:       1998-03-30 21:28:07
[Download RAW message or body]

>     * From: Kristin McNally <KMcNally@mooncom.net>
>     * Date: Mon, 30 Mar 1998 10:52:06 -0500
>OS:  Windows NT 4.0
>LYNX: version 2.8
>
>I am trying to launch Lynx v2.8 from a parent process that redirects
>Lynx's standard i/o to the parent's console window.  When the Lynx
>process is created, it receives the redirected handles and sends this
>error message to the parent's console:
>
>        initscr( ): LINES=0 COLS=0: too small.
>
>The Lynx process will launch fine from the parent process as long as it
>launches with its own console... but if it has its own console, I cannot
>redirect the std i/o.
>
That's strange, did I miss the calls to SetStdHandle?  I don't see this
in your code.  Actually, what we all need in Windows 95 is a general-
purpose program that calls your program and redirects output.  I am
thinking particularly of redirecting output from gcc while it operates
under Windows 95/NT.

Quoth the help file:

Remarks

The standard handles of a process may have been redirected by a call
to SetStdHandle, in which case GetStdHandle will return the redirected
handle. If the standard handles have been redirected, you can specify
the CONIN$ value in a call to the CreateFile function to get a handle
of a console's input buffer. Similarly, you can specify the CONOUT$
value to get a handle of the console's active screen buffer. 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic