Gary Johnson wrote:

> I just started using the 'guioptions' '!' flag when running gvim for
> Windows.  It's much less distracting to have the output of a shell
> command appear at the bottom of the current window than to see it in
> a separate console window.
> 
> However, I've noticed an apparent inconsistency in how the '!' flag
> is applied.  For example,
> 
>     :!echo hello
> 
> prints "hello" at the bottom of the current gvim window, but
> 
>     :w !echo hello
> 
> prints "hello" in a new console window.
> 
> I would think that the '!' flag would cause the output of the latter
> command to also appear at the bottom of the gvim window.  Is there
> some reason that this shouldn't be "fixed"?

There is a todo item in the code, src/os_win32.c around line 4800:

 // TODO: make the terminal window work with input or output redirected.

I don't know how difficult it would be to implement.

-- 
Veni, Vidi, Video -- I came, I saw, I taped what I saw.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220323115018.935AC1C0497%40moolenaar.net.

Raspunde prin e-mail lui