more robust femto launcher

This commit is contained in:
~d6 2023-04-10 13:06:54 -04:00
parent 6ee7adad4d
commit c126cd7054
1 changed files with 6 additions and 2 deletions

8
femto
View File

@ -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