#!/bin/zsh

grub_screen() {
  clear
  echo -e "\n\n\t           GNU GRUB  2.06"
  echo -e "\n"
  echo -e "\t  Minimal BASH-like line editing is supported. For the first word, TAB"
  echo -e "\t  lists possible command completions. Anywhere else TAB lists possible"
  echo -e "\t  device or file completions."
  echo -e "\n"
}

grub_screen

# Fake GRUB prompt
while true; do
  echo -ne "  grub> "
  read -r command
  case $command in
    exit|quit)
      clear
      break
      ;;
    *)
      echo -e "\t  Unknown command.  Press a key to continue..."
      read -r dummy
      ;;
  esac
done
