summaryrefslogtreecommitdiff
path: root/hackvr_term/run
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-12-19 04:56:13 -0600
committerepoch <epoch@hacking.allowed.org>2017-12-19 04:56:13 -0600
commitd266ba9242c9542c05c68c45f6fd09e4e46099ed (patch)
treee95120e228d4c154d8beb7af8b441721b6b19d5c /hackvr_term/run
parent6f1710a159a2bb523b053d16866154b02b0542ba (diff)
downloadhackvr-d266ba9242c9542c05c68c45f6fd09e4e46099ed.tar.gz
hackvr-d266ba9242c9542c05c68c45f6fd09e4e46099ed.zip
added hackvr_term
Diffstat (limited to 'hackvr_term/run')
-rwxr-xr-xhackvr_term/run9
1 files changed, 9 insertions, 0 deletions
diff --git a/hackvr_term/run b/hackvr_term/run
new file mode 100755
index 0000000..31302dc
--- /dev/null
+++ b/hackvr_term/run
@@ -0,0 +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_term 80 25 \
+ | sed -u 's/addshape -1/addshape 2/g' \
+ | tee /dev/stderr) \
+ | ../hackvr $USER > p
+rm p