diff options
author | epoch <epoch@hacking.allowed.org> | 2017-12-24 03:18:47 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2017-12-24 03:18:47 -0600 |
commit | 47b35448bdf1e0e1faeaaf6250bf44c491b198d3 (patch) | |
tree | 39c92fc32f7e91273b97a0430ad634617dd94ddc | |
parent | c9e589c97678b6a99500bcfd6631cb9890ed069f (diff) | |
download | hackvr-47b35448bdf1e0e1faeaaf6250bf44c491b198d3.tar.gz hackvr-47b35448bdf1e0e1faeaaf6250bf44c491b198d3.zip |
made run script decode the data lines by running new script before sending to pty
-rwxr-xr-x | hackvr_term/run | 8 |
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 |