Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/nes
#!/bin/rc rfork e res=(565 520 826 767) while(~ $1 -*){ if(~ $1 -2) res=(754 706 1278 1199) args=($args $1) shift } game=$1 if(! ~ $game /*) game=`{pwd}^/$game args=($args $game) window -r $res 'label nes '$1'; games/nes '$"args