Xaizek wrote:
> Hi,
> I don't know if someone need it, but this is a very small patch for
> 7.3.087 that adds an option /hidden to !start command on Windows (in
> file src/os_win32.c). This option could be used to run external
> console applications in a background (like ctags after saving file)
> without opening console window.
>
> 3360a3361
> > DWORD flags = CREATE_NEW_CONSOLE;
> 3377a3379,3384
> > if ((STRNICMP(cmdbase, "/hidden", 7) == 0)
> > && vim_iswhite(cmdbase[7]))
> > {
> > cmdbase = skipwhite(cmdbase + 7);
> > flags = CREATE_NO_WINDOW;
> > }
> 3405c3412
> < CREATE_NEW_CONSOLE, // Creation flags
> ---
> > flags, // Creation flags
Why /hidden? The docs for "start" mention /b.
This needs to be properly documented, especially what commands can be
run this way and what happens if the command tries to read input anyway.
And verify this on different systems, especially Windows XP and Windows
7.
For the diff, please use "diff -u" or "diff -c".
--
The technology involved in making anything invisible is so infinitely
complex that nine hundred and ninety-nine billion, nine hundred and
ninety-nine million, nine hundred and ninety-nine thousand, nine hundred
and ninety-nine times out of a trillion it is much simpler and more
effective just to take the thing away and do without it.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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