One thing that has vexed me for as long as I've used the Tlf voice keyer is the inability to cancel a message once it is fired. Invariably I will hear a station start to call just as an auto-cq begins (Murphy's Law and all that). I've tried this naive hack and it simply will not kill the shell script:
$ git diff src/stoptx.c diff --git a/src/stoptx.c b/src/stoptx.c index 2bed5a5..6ee9d16 100644 --- a/src/stoptx.c +++ b/src/stoptx.c @@ -25,6 +25,7 @@ #include "clear_display.h" #include "err_utils.h" #include "globalvars.h" +#include "ignore_unused.h" #include "netkeyer.h" #include "tlf.h" #include "tlf_curses.h" @@ -46,6 +47,9 @@ int stoptx(void) { } } + } else if (trxmode == SSBMODE) { + IGNORE(system("pkill -SIGTERM play_vk"));; + return (0); } else { return (1); } I also tried killing the play process directly but that fails as well. I can kill either the play_vk script or the play process with pkill from another terminal manually but Tlf does nothing. Looking at the case label for ESCAPE in callinput.c there is nothing mode specific (I have local patches that separate the call to stoptx() from clearing the input field so that the first press only stops TX). I'd appreciate any working advice before the QSO party begins tomorrow. 73, Nate P.S. I can push stuff out to my private repository if that helps. P.P.S stoptx() works fine in CW. -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
signature.asc
Description: PGP signature