summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtwopane.bash9
1 files changed, 8 insertions, 1 deletions
diff --git a/twopane.bash b/twopane.bash
index a00e727..ddcd79b 100755
--- a/twopane.bash
+++ b/twopane.bash
@@ -75,7 +75,14 @@ send()
75{ 75{
76 sendc "$*"$'\n' 76 sendc "$*"$'\n'
77} 77}
78export -f send sendc sendp restart 78start()
79{
80 while read -r -N1
81 do
82 sendc "$REPLY"
83 done
84}
85export -f restart sendp sendc send start
79bash -c "$BOT_CMD" || read -p "Error: process terminated with exit code $? 86bash -c "$BOT_CMD" || read -p "Error: process terminated with exit code $?
80Press enter to quit." 87Press enter to quit."
81. 88.