From 41692eb416df3bff1e5a10b8c71058248c5d9308 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 20 Jul 2012 23:00:33 -0700 Subject: Add -I command line flag to enter interactive mode at startup Avoids having to try to time a ^C after the signal handler is set up but before any data is handled. Signed-off-by: Alan Coopersmith --- scope.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scope.c') diff --git a/scope.c b/scope.c index 96f0464..89049aa 100644 --- a/scope.c +++ b/scope.c @@ -666,6 +666,7 @@ Usage(void) " [-a] -- audio verbose output\n" " [-q] -- quiet output\n" " [-D]\n" + " [-I] -- start in interactive mode\n" " [-S] -- start/stop on SIGUSR1\n" " [-t] -- terminate when all clients close\n"); exit(1); @@ -715,6 +716,10 @@ ScanArgs(int argc, char **argv) debug(1, (stderr, "debuglevel = %d\n", debuglevel)); break; + case 'I': + Interrupt = 1; + break; + case 'S': HandleSIGUSR1 = 1; ScopeEnabled = atoi(++*argv); -- cgit v1.2.1