From 3957eacbd11ee14c19690ff7adacd1ac085fafad Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 23 Sep 2015 11:59:28 +0200 Subject: [PATCH] Disable keyboard control if stdin is not tty --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c27d0e831..2279dbedb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -906,6 +906,10 @@ int main(int argc, char *argv[]) printf("Video FEC : %s\n", requested_video_fec); printf("\n"); + if (!isatty(0)) { + disable_key_control = true; + } + if (strcmp("none", audio_recv) != 0) { audio_rxtx_mode |= MODE_RECEIVER; }