[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] [off] micro-typography
From: |
ralph |
Subject: |
Re: [Groff] [off] micro-typography |
Date: |
Wed, 13 Feb 2002 16:10:07 +0000 |
Hi,
Ted wrote:
> On this general question: Is there any problem with getting groff
> simply to open a pair of named pipes using 'mkfifo', reading from
> one, writing to the other, and invoking the user's favorite program
> to write to and read fromthe other ends of the pipes?
No problem, I'd have thought.
Thomas Baruchel wrote:
> I don't completely agree. Of course you can do this in many cases,
> but it isn't very clean and therefore you have some exceptions. I
> don't see for the moment an unix language interpreter that couldn't
> do that, but I have in mind the difficulty to do that with the unix
> 'dc' calculator. If you try to launch it from a process and write on
> its stdin, you will not have the evaluations on stdout. I don't
> remember exactly why; it probably has to do with some termios stuff.
It's simply C's stdio buffering becoming visible. In order to use two
pipes for two-way communication (or a socket -- there's no particular
difference) both writers need to be able to `flush' their output to
ensure it is written (write(2)) down a pipe before they await further
input.
Ralph.
- RE: [Groff] [off] micro-typography, (continued)
- Re: [Groff] [off] micro-typography, Larry Kollar, 2002/02/15
- Re: [Groff] [off] micro-typography, Bernd Warken, 2002/02/15
- Re: [Groff] [off] micro-typography, ralph, 2002/02/15
- RE: [Groff] [off] micro-typography, P. Alejandro Lopez-Valencia, 2002/02/15
- Re: [Groff] [off] micro-typography, Thomas Baruchel, 2002/02/16
- RE: [Groff] [off] micro-typography, Sigfrid Lundberg, NetLab, 2002/02/18
- Re: [Groff] [off] micro-typography, Thomas Baruchel, 2002/02/13
- Re: [Groff] [off] micro-typography, Ted Harding, 2002/02/13
- Re: [Groff] [off] micro-typography,
ralph <=
- Re: [Groff] [off] micro-typography, Werner LEMBERG, 2002/02/08
Re: [Groff] [off] micro-typography, Werner LEMBERG, 2002/02/02
RE: [Groff] [off] micro-typography, Ted Harding, 2002/02/02
Re: [Groff] [off] micro-typography, Ted Harding, 2002/02/03
Re: [Groff] [off] micro-typography, Werner LEMBERG, 2002/02/05