01 call menu 02 restart ;Main Loop 03 04 menu: ;Main menu 05 call printhead 06 type menu.txt 07 call printfoot 08 call keys 09 10 onkey 1 memdisk partimag.img 11 onkey 2 memdisk hal.img 12 onkey 3 memdisk tomsrtbt.img 13 onkey 4 memdisk eltorito.img 14 onkey 5 diskemu smartbt.img 15 16 onkey a boot 0 ;Boot the right disk 17 onkey c boot 0x80 ;Boot /dev/hda1 18 onkey d boot 0x81 ;Boot /dev/hda2 19 return 20 21 keys: ;Handle the keys 22 getkey 23 24 onkey F1 restart 25 ;onkey F2 goto linuxdisks 26 27 onkey home restart 28 onkey b restart 29 30 onkey q quit 31 onkey x quit 32 onkey end quit 33 onkey esc quit 34 return 35 36 printhead: ;Print the (colored) menu 37 clear 38 print "\c8f F1: Main Menu F2: Boot Managers F3: Dos Tools F4: Linux Tools " 39 return 40 41 printfoot: ;Print the "Type command at prompt" message 42 print "\n" 43 print " b) Go back to main menu" 44 setpos 1 24 45 print "\n" 46 print "\c8f Type command at the prompt " 47 return