mpv/osdep
James Ross-Gowan 527911d2a2 win32: only attach to the console from mpv.com
Previously, mpv.exe used the --terminal option to decide whether to
attach to the parent process's console, which made it impossible to tell
whether mpv would attach to the console before the config files were
parsed. Instead, make mpv always attach to the console when launched
from the console wrapper (mpv.com) and never attach otherwise. This will
be useful for the next commit, which will use the presence of the
console to decide whether to use the pseudo-gui profile.

This change should also be an improvement in behavior. The old code
would attach to the parent process's console, regardless of whether it
was mpv.com or some other program like cmd.exe. This could be confusing,
since mpv.exe is marked as a Windows GUI program and shouldn't write
text to its parent process's console when launched directly. (See #768.)

Visual Studio does something similar with its devenv.com wrapper.
devenv.exe only attaches to the console when launched from devenv.com.
2015-04-11 14:34:33 +10:00
..
ar
win32 win32: add native wrappers for pthread functions 2015-01-01 15:10:42 +01:00
atomics.h msg: use relaxed atomics for log level test 2015-03-02 19:09:31 +01:00
compiler.h
endian.h
glob-win.c
io.c win32: use a platform-specific unicode entry-point 2015-04-11 14:27:25 +10:00
io.h win32: use a platform-specific unicode entry-point 2015-04-11 14:27:25 +10:00
macosx_application.h cocoa: use --idle when running inside bundle 2014-12-06 14:16:13 +01:00
macosx_application.m osx: terminate argv properly when arguments are removed 2015-03-06 11:31:05 +01:00
macosx_application_objc.h cocoa: ignore first file open events from command line 2014-12-07 21:39:26 +01:00
macosx_compat.h
macosx_events.h
macosx_events.m cocoa: silence -Wlogical-op-parentheses 2015-03-04 10:21:36 +01:00
macosx_events_objc.h
macosx_versions.h
mpv.exe.manifest win32: fix/change application name 2015-02-09 20:44:09 +01:00
mpv.rc win32: fix/change application name 2015-02-09 20:44:09 +01:00
path-macosx.m
path-win.c
path.h
semaphore.h
semaphore_osx.c
subprocess-posix.c osdep/subprocess-posix: remove __GLIBC__ guard 2015-02-03 14:34:52 -08:00
subprocess-win.c subprocess-win: clarify argument escaping logic 2015-03-24 15:53:36 +11:00
subprocess.h
terminal-unix.c terminal: always print to stderr with --no-input-terminal 2015-01-07 19:45:44 +01:00
terminal-win.c win32: only attach to the console from mpv.com 2015-04-11 14:34:33 +10:00
terminal.h win32: only attach to the console from mpv.com 2015-04-11 14:34:33 +10:00
threads.c
threads.h
timer-darwin.c
timer-linux.c
timer-win2.c win32: use monotonic clock on windows if possible 2015-01-19 19:01:08 +01:00
timer.c msg: add --log-file option 2015-01-26 11:31:02 +01:00
timer.h msg: add --log-file option 2015-01-26 11:31:02 +01:00
w32_keyboard.c
w32_keyboard.h
win32-console-wrapper.c win32: only attach to the console from mpv.com 2015-04-11 14:34:33 +10:00