diff options
author | Cheng Zhao <zcbenz@gmail.com> | 2021-08-09 14:02:50 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-08-17 20:17:16 +0300 |
commit | fae352a0f5b37e2b4a1b0c636cc786b4a3e6e496 (patch) | |
tree | 477c757b29b3bbeb295db77964bf5d3a8cb9cc75 /src/env.h | |
parent | f42d7a4552cdf3604833c61cf1d7923b9602833d (diff) |
build: add option to hide console window
Adds a Environment flag to allow embedders to set CREATE_NO_WINDOW
property when spawning processes, which is useful for GUI programs
that do not want to show console windows when running terminal
commands.
PR-URL: https://github.com/nodejs/node/pull/39712
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h index 24b4a48b5f9..8760bc4361f 100644 --- a/src/env.h +++ b/src/env.h @@ -1198,6 +1198,7 @@ class Environment : public MemoryRetainer { inline bool owns_process_state() const; inline bool owns_inspector() const; inline bool tracks_unmanaged_fds() const; + inline bool hide_console_windows() const; inline uint64_t thread_id() const; inline worker::Worker* worker_context() const; Environment* worker_parent_env() const; |