more robust femto launcher
This commit is contained in:
parent
6ee7adad4d
commit
c126cd7054
8
femto
8
femto
|
@ -5,11 +5,15 @@
|
||||||
# see femto.txt for documentation
|
# see femto.txt for documentation
|
||||||
|
|
||||||
TTY=`stty -g`
|
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
|
if [ $? -eq 0 ]; then
|
||||||
stty raw -echo
|
stty raw -echo
|
||||||
uxncli femto.rom "$@"
|
uxncli "$BASE/femto.rom" "$@"
|
||||||
stty "$TTY"
|
stty "$TTY"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue