aboutsummaryrefslogtreecommitdiffhomepage
path: root/client.tes
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2016-01-26 01:38:06 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2016-01-26 01:38:06 +0100
commitec26104cb74ad525d0883700ddc878fa71aee2b5 (patch)
treea64cbeb5e067d5377f35b82ca1321aeae196bac6 /client.tes
parentd0a35eb15b2d1f45bce8edbf6351e636740ea2be (diff)
downloadapplause2-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.tes29
1 files changed, 18 insertions, 11 deletions
diff --git a/client.tes b/client.tes
index 77db8ab..0005f54 100644
--- a/client.tes
+++ b/client.tes
@@ -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]
}