Re: New tiny, very rudimentary web browser

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 UTC