dotg

a bitreich fosdem adventure
git clone https://git.parazyd.org/dotg
Log | Files | Refs

functions (314B)


      1 #!/bin/sh
      2 
      3 navigation() {
      4 	locations="
      5 		Campus_Outside
      6 		Cafeteria
      7 	"
      8 	current="$(cat "$savegame/room")"
      9 	echo
     10 	for i in $locations; do
     11 		if ! [ "$current" = "$i" ]; then
     12 			echo "[1|Go to $i|$path/$i.dcgi|server|port]"
     13 		fi
     14 	done
     15 }
     16 
     17 _msg() {
     18 	echo
     19 	echo "$*" | fmt --width=109 | sed 's/\t//g' | sed 's/^t/tt/'
     20 }