summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hackvr/examples/draw/run2
-rwxr-xr-xshare/hackvr/examples/tictactoe/run2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/hackvr/examples/draw/run b/share/hackvr/examples/draw/run
index f14b415..699a38c 100755
--- a/share/hackvr/examples/draw/run
+++ b/share/hackvr/examples/draw/run
@@ -1,3 +1,3 @@
#!/bin/sh
mknod p p
-cat p | tee /dev/stderr | ./draw.sh | hackvr $USER > p
+hackvr_coproc ./draw.sh
diff --git a/share/hackvr/examples/tictactoe/run b/share/hackvr/examples/tictactoe/run
index 46a5b44..bf9c87a 100755
--- a/share/hackvr/examples/tictactoe/run
+++ b/share/hackvr/examples/tictactoe/run
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
turn=$( expr $RANDOM % 2)
echo "go. player: $turn"
-socat exec:./game.sh exec:hackvr
+hackvr_coproc ./game.sh