groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Re: grohtml 1.19.2/Win32--troff 'o' Option


From: Werner LEMBERG
Subject: [Groff] Re: grohtml 1.19.2/Win32--troff 'o' Option
Date: Tue, 17 Feb 2004 15:02:54 +0100 (CET)

> Thus, we should, perhaps, implement something like

> 
>    #if defined(_WIN32) && !defined(__CYGWIN__)
>       if( ! isatty( STDIN_FILENO ) )
>       {
>         int drain;
>         while( read( STDIN_FILENO, &drain, 1 ) == 1 )
>           ;
>       }
>    #endif

This won't work in general since input files can be stacked (.so or
.mso).  Using input_stack::get() takes care of this.


    Werner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]