vice.sh 663 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. dialog --title "VICE" \
  3. --menu "VICE is an emulator for Commodore\n\
  4. computers. It emulates the C64, the C128,\n\
  5. the VIC20, almost all PET models, the PLUS4\n\
  6. and the CBM-II.\n\\n\
  7. Choose the emulator you like to run:" 24 60 6 \
  8. "x64" "- C64 emulator" \
  9. "x64dtv" "- C64 Direct-to-TV (DTV) emulator" \
  10. "x128" "- C128 emulator" \
  11. "xvic" "- VIC20 emulator" \
  12. "xpet" "- PET emulator" \
  13. "xplus4" "- PLUS4 emulator" \
  14. "xcbm2" "- CBM-II emulator" 2> /tmp/menu.tmp.$$
  15. retval=$?
  16. choice=`cat /tmp/menu.tmp.$$`
  17. rm -f /tmp/menu.tmp.$$
  18. case $retval in
  19. 0)
  20. $choice;;
  21. 1)
  22. ;;
  23. 255)
  24. ;;
  25. esac