W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Re: New tiny, very rudimentary web browser

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 10 Feb 1999 09:26:53 -0500
To: www-lib@w3.org
Message-ID: <36C1972C.17594CF7@w3.org>
To: Vladimir Kozlov <Vladimir.Kozlov@idm.ru>
CC: eric@w3.org

Vladimir Kozlov wrote:
> 
> Does anybody had success in compiling the tiny browser under NT?
> The problem is that MSVC has not STDIN_FILENO variable. I've set the
> following:

Eric Prud'hommeaux wrote this for the line mode browser which registers
the equivalent on windows if not in console mode. 

	ConsoleEvent = HTEvent_new(scan_command, lm->console, HT_PRIORITY_MAX,
lm->timer);
#ifdef STDIN_FILENO
	if (isatty(STDIN_FILENO)) {
	    HTEventList_register(STDIN_FILENO, HTEvent_READ, ConsoleEvent);
	}
#else
	HTEventList_register(GetStdHandle(STD_INPUT_HANDLE), HTEvent_READ,
ConsoleEvent);
#endif

I have tried to modify it to fit tiny.c and made this small patch -
could I please get you try it out and see if it works?

Thanks!

Henrik

Received on Wednesday, 10 February 1999 09:27:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT