diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-01-26 01:38:06 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-01-26 01:38:06 +0100 |
commit | ec26104cb74ad525d0883700ddc878fa71aee2b5 (patch) | |
tree | a64cbeb5e067d5377f35b82ca1321aeae196bac6 /client.tes | |
parent | d0a35eb15b2d1f45bce8edbf6351e636740ea2be (diff) | |
download | applause2-ec26104cb74ad525d0883700ddc878fa71aee2b5.tar.gz |
allow client connections to be terminated prematurely
* use socat now for SciTECO integration. It correctly shuts down
the connection when interrupted.
This has the effect as cancelling the current command, just as
^C would on the Applause command line.
Diffstat (limited to 'client.tes')
-rw-r--r-- | client.tes | 29 |
1 files changed, 18 insertions, 11 deletions
@@ -1,19 +1,26 @@ +!* + * SciTECO Applause integration + *! -! Applause client: Evaluate command ! -@#ae{ - X[applause.output] +! Send command in "applause.output". Used only internally ! +@[applause.command]{ EQ[applause.output] Z\ 5-.<I > 10I - HECnc 127.0.0.1 10000 J + HECsocat -,ignoreeof TCP:127.0.0.1:10000 J Z"= Q*U* ' } -! Print command ! +! Evaluate command ! +@#ae{ + X[applause.output] :M[applause.command] +} + +! Show expression output ! +@#as{ + ([applause.output]=) :X[applause.output] :M[applause.command] +} + +! Play expression/stream ! @#ap{ - X[applause.output] - EQ[applause.output] - I= R - Z\ 5-.<I > 10I - HECnc 127.0.0.1 10000 J - Z"= Q*U* ' + X[applause.output] :[applause.output]:play() :M[applause.command] } |