#!/bin/bash

function shell_acces {

    RETVAL=

    inputbox " Type a shell command"

    if [ "${RETVAL}" = "0" ]; then

	clear

	if [ "${INPUT}" = "mc" ];then

	    . ${HOME}/.bashrc
	    local INI=${HOME}/.mc/ini
	    backup_conf --force ${INI}
	    sed -e "s|command_prompt=1|command_prompt=0|" < ${INI} > $INI.tmp
	    mv ${INI}.tmp ${INI}
	    sleep 1 && mc -u
	    restore_conf ${INI}

	else

	    ${INPUT}

	fi

	hit_enter

    fi

}
