get_gpm()  {
if ! grep -q "MOUSE" $SPELL_CONFIG 
  then
    touch $SPELL_CONFIG
    MOUSETYPES=$(cat $SCRIPT_DIRECTORY/mousetypes)
    MOUSETYPES=$(dialog \
      --backtitle 'GPM Configuration Menu' \
      --stdout \
      --title     'Select your mouse type please' \
      --menu      '' 0 100 10 $MOUSETYPES)
    echo "MOUSE=${MOUSETYPES//\"/}" >> $SPELL_CONFIG
fi
}
get_mousedev()  {
if ! grep -q "DEV" $SPELL_CONFIG 
  then
    touch $SPELL_CONFIG
    MOUSEDEV=$(cat $SCRIPT_DIRECTORY/mousedev)
    MOUSEDEV=$(dialog \
      --backtitle 'GPM Configuration Menu' \
      --stdout \
      --title     'Select your mouse device entry please' \
      --menu      '' 0 100 10 $MOUSEDEV)
    echo "DEV=${MOUSEDEV//\"/}" >> $SPELL_CONFIG
fi
}

get_gpm
get_mousedev
