Sunday, October 21, 2018

Re: Showing shell output in GVim's window

Bram Moolenaar:

> With Vim 8.1 and later, you can use ":set go+=!".

With this option, I get:

winpty-agent Createprocess failed:

followed by an invocation of winpty-agent with a pipe name
and --create-desktop. At the end it says: "err=0xc1". I
don't know how to copy this error message from GVim's
window.

> The problem on MS-Windows is that redirection doesn't work
> properly.

If you meant the redirection of stdin, stdout, and stderr,
then what is the problem? I have recently written a cross-
platform program in Pascal that runs an extermal command
with redirected input and outputs. On Windows, it starts
the external process using CreateProcess(), then enters a
loop where it polls the output handles without blocking with
PeekNamedPipe() and ReadFile(), and writes to the input
handle with WriteFile(). PeekNamedPipe() does work with
anonymous pipes.

--
Please, do not forward replies to my e-mail.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: