From 478078be7fc776c44b4df68ffd8e78db5bf96114 Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 3 Jan 2024 16:04:09 +0100 Subject: [PATCH] first tests getting the board size of pixelflut server, but does not work yet --- pixelfloot_bash.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pixelfloot_bash.sh b/pixelfloot_bash.sh index d993d93..ed5bbcf 100755 --- a/pixelfloot_bash.sh +++ b/pixelfloot_bash.sh @@ -219,7 +219,6 @@ convertimg() { sx=0 sy=0 shuf_xy() { - case $SHUFMODE in chaos) test -z $H && H=640 test -z $W && W=480 @@ -379,7 +378,16 @@ case $1 in echo "please specify coords with e.g. 'W=420 H=420 SHUFMODE=static $0 floot $FNAME" >&2 exit 1 fi + #~ message "request board size from ${YELLOW}${IPFLOOT}:${FLOOTPORT}${ENDCOLOR}" + #~ exec 5<>/dev/tcp/$IPFLOOT/$FLOOTPORT + #~ echo "SIZE" >&5 + #~ #sleep 1 + #~ BOARDSIZE="$(cat <&5)" & + #~ cat <&5 & + #~ sleep 1 + #~ exec 5<&- + #~ message "$BOARSIZE" floot ;; *)