From: Siraaj Khandkar Date: Sun, 22 Jul 2012 05:10:56 +0000 (-0400) Subject: Start script. Sets size of the board to match terminal. X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=15ee0f23d1fabf52523a97e4f7336b548b43577e;p=cellular-automata.git Start script. Sets size of the board to match terminal. --- diff --git a/001/life b/001/life new file mode 100755 index 0000000..d653da0 --- /dev/null +++ b/001/life @@ -0,0 +1,9 @@ +#! /bin/sh + + +Y=`expr \`stty size | awk '{print $1}'\` - 3` +X=`stty size | awk '{print $2}'` + + +erlc life.erl +erl -noshell -s life bang $X $Y