From c126cd7054db5e4cce27bded5eff5c9e6823cbb4 Mon Sep 17 00:00:00 2001 From: d6 Date: Mon, 10 Apr 2023 13:06:54 -0400 Subject: [PATCH] more robust femto launcher --- femto | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/femto b/femto index 6e4b9cc..d267560 100755 --- a/femto +++ b/femto @@ -5,11 +5,15 @@ # see femto.txt for documentation TTY=`stty -g` +BASE="$HOME/w/nxu" -uxnasm femto.tal femto.rom +if [ $1 = "-r" ]; then + shift + uxnasm "$BASE/femto.tal" "$BASE/femto.rom" +fi if [ $? -eq 0 ]; then stty raw -echo - uxncli femto.rom "$@" + uxncli "$BASE/femto.rom" "$@" stty "$TTY" fi