summaryrefslogtreecommitdiff
path: root/hackvr_term
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-12-24 03:18:47 -0600
committerepoch <epoch@hacking.allowed.org>2017-12-24 03:18:47 -0600
commit47b35448bdf1e0e1faeaaf6250bf44c491b198d3 (patch)
tree39c92fc32f7e91273b97a0430ad634617dd94ddc /hackvr_term
parentc9e589c97678b6a99500bcfd6631cb9890ed069f (diff)
downloadhackvr-47b35448bdf1e0e1faeaaf6250bf44c491b198d3.tar.gz
hackvr-47b35448bdf1e0e1faeaaf6250bf44c491b198d3.zip
made run script decode the data lines by running new script before sending to pty
Diffstat (limited to 'hackvr_term')
-rwxr-xr-xhackvr_term/run8
1 files changed, 4 insertions, 4 deletions
diff --git a/hackvr_term/run b/hackvr_term/run
index 31302dc..396a922 100755
--- a/hackvr_term/run
+++ b/hackvr_term/run
@@ -1,9 +1,9 @@
#!/bin/bash
mknod p p
cat <(cat camera.pos | sed 's/USER/'"$USER"'/g') \
- <(python -c 'import pty;pty.spawn("/bin/bash")' < p \
+ <(./hackvr_data_decode.sh <p \
+ | python -c 'import pty;pty.spawn("/bin/bash")' \
| ./hackvr_term 80 25 \
- | sed -u 's/addshape -1/addshape 2/g' \
- | tee /dev/stderr) \
- | ../hackvr $USER > p
+ | sed -u 's/addshape -1/addshape 2/g') \
+ | ../hackvr $USER | tee /dev/stderr > p
rm p