On Mon, Oct 22, 2012 at 01:57:20PM -0700, utoddl wrote:
>
> Since ne makes no assumptions about the existence of X, it think it would
> be more appropriate to use named pipes, probably in ~/.ne/ or /tmp. We
It's sometimes useful for a remote command to block until the user is finished
editing the document, such as when composing mail in mutt or commit messages in
svn. I think it would be difficult to make multiple remote commands block on a
single named pipe, since all their messages get multiplexed together, and
furthermore pipes are one-way. This can be achieved easily with a socket, if
after sending the file path the editor should open, the remote command waits
for a "done" message from the editor to indicate that the user has closed the
document.
On the other hand, named pipes are really easy to write to, whereas the BSD
socket interface is horribly arcane.