From 15b4ef4132314b81cf5a92adbe1413ada5206482 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Sun, 29 Jun 2014 14:55:37 -0400 Subject: [PATCH] *added courtesy check when invoking listdev in gui mode to automatically open the console --- pd/src/s_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pd/src/s_main.c b/pd/src/s_main.c index d9901706b..161b0b112 100644 --- a/pd/src/s_main.c +++ b/pd/src/s_main.c @@ -970,6 +970,13 @@ int sys_argparse(int argc, char **argv) return (1); } } + if (sys_listplease && !sys_printtostderr) + { + // if we asked to list devices and are not using stderr output + // open console to facilitate understanding where devices have + // been listed + sys_console = 1; + } if (!sys_defaultfont) sys_defaultfont = DEFAULTFONT; for (; argc > 0; argc--, argv++) -- GitLab