f-tools ()
{
unbold ; clear ; echo
fig-col
figlet -k -t "  Tools                                                                      "
unbold
echo -e "  Here you can make adjustments and choices..."
head-col
echo -e "\n  Configuration                                                             \n"
info-col
echo "  0: Software Install/Remove.           (sudo aptitude)                           "
echo "  1: Adjust the System Time.            (sudo dpkg-reconfigure tzdata)            "
echo "  2: Choose Your Default Editor.        (sudo update-alternatives --config editor)"
echo "  3: Adjust Sound                       (alsamixer)                               "
head-col
echo -e "\n  Information                                                               \n"
info-col                                                                      
echo "  4: About INX email alternatives.                                                "
echo "  5: About INX Editors                                                            "
echo "  6: About INX Browsers                                                           "
echo "  7: Why You Should Use GNU Screen                                                "
echo "  8: Introduction to Linux                                                        "
echo "  9: Hints and Rants                                                              "
echo
fig-col
echo "  f: Flip colours            "
echo "  m: INX main menu           "
echo "  s: INX and Bash Shortcuts  "
echo "  t: Toggle clock on | off   "
echo "  x: Give me a command prompt"


f-ttynum
read -s -n 1 TOOLS
case $TOOLS in
    
    0)
    sudo aptitude
    f-tools
    ;;
    1)
    time_settings
    f-tools
    ;;
    2)
    unbold ; clear ; bold ; yellow 
    echo -e "\nHere you can choose your preferred default editor."
    echo -e "It will be used with the mutt mail client, office and so on.\n"
    echo -e "Hint: Don't choose '/bin/ed' unless you are a masochist :)\n"
    white
    sudo update-alternatives --config editor
    f-tools
    ;;
    3)
    alsamixer
    f-tools
    ;;
    4)
    unbold ; clear ; bold
    fig-col
    echo -e "\n  INX Email"
    echo
    head-col
    echo "  Three ways to use email in INX:"
    echo
    echo "  IMAPS with Mutt"
    info-col
    echo
    echo "  Most ISPs now support the IMAPS protocol. You can set up"
    echo "  the Mutt email client to use this with the secure version (IMAPS)."
    echo "  Be sure to check to see if your ISP uses a different server for this."
    head-col
    echo
    echo "  Gmail with Mutt"
    info-col
    echo
    echo "  If you have a Gmail account, this way is quicker to set up."
    echo "  There are fewer questions to answer ;-)"
    echo
    head-col
    echo "  For the terminally impatient Gmail user:"
    info-col
    echo
    echo "  There's a quick-and-dirty entry in the mail menu to use elinks."
    echo "  It works, but using Mutt is much nicer!"
    echo
    echo "  Read the introduction on the email menu..."
    head-col
    echo -e "\n  e: Take me to the email menu.\n"
    fig-col
    echo -e "  Any other key to return to the tools menu.\n"
    
        read -s -n 1 MAIL
	case $MAIL in
	    e)
	    f-mail
	    ;;
	    *)
	    f-tools
	    ;;
	esac
    ;;
    5)
    unbold ; clear ; bold
    fig-col
    echo -e "\n  Editors"
    echo
    head-col
    echo -e "  Jed  "
    info-col
    cat << EOJED
  Jed is the default editor in INX, for these reasons:
  
  * You can explore menus with your mouse, which helps to learn the key bindings.
  * It is fairly intuitive compared to vi, which is the "standard" nix editor.
  * It has pretty colours ;-)
  
  Also included is the tiny "zile" editor. Jed and zile both emulate Emacs.
  
  Recommended: If you want to learn Jed (or indeed Emacs), run the zile editor 
  and try the tutorial. The zile tutorial helps with all three.
  
EOJED
 
    head-col
    echo -e "  Vim  "
    info-col
    cat << EOVIM
  Vi or Vim will be on any GNU/Linux or Unix installation. 
  Knowing your way around vi is always useful.
  
  * Vim has a tutorial - just type "vimtutor" at the command line prompt.
  * Vi/Vim is a "modal" editor - this means it has a "command" mode and an "input" mode.
    You switch by hitting the <escape> key. This is explained in "vimtutor".
  * Vi/vim is very powerful - whenever you see the word "powerful" associated 
    with a *nix app, expect a long apprenticeship ;-) 

EOVIM
    head-col
    echo -e "  MCEdit"
    info-col
    echo -e "  MCEdit is part of the mc (Midnight Commander) package. It is quite intuitive.\n"
    head-col
    echo -e "  Nano"
    info-col
    echo -e "  Nano you have already met briefly, if you have followed the tutorials."
    echo -e "  It is a simple but useful editor."
    head-col
    echo -e "\n  v: Vimtutor"
    echo -e "  z: Zile tutorial. ( type Ctrl+h then  t in Zile for the tutorial)\n"
    fig-col
    echo -e "  Any other key to return to the Tools menu."
    
    read -s -n 1
    case $REPLY in
        v)
	vimtutor
	f-tools
	;;
	z)
	zile
	f-tools
	;;
	*)
	f-tools
	;;
    esac       
    ;;
    6)
    unbold ; clear ; bold
    fig-col
    echo -e "\n  Browsers \n"
    info-col
    echo "  You have a choice of graphical and non-graphical browsers."
    echo "  Most people will, through habit, prefer the graphical browser."
    echo "  This is O.K. - but be aware that the command-line browser elinks"
    echo "  is really a better choice in INX, most of the time."
    echo
    echo "  Elinks integrates much better with the other applications -"
    echo "  for example, it starts the MOC music player for Shoutcast and"
    echo "  Magnatunes URLs, and it will start the Playinx script to play"
    echo "  Internet videos, provided that the link does not use plugins"
    echo "  javascript or other tricks."
    echo
    echo "  Obviously, the graphical browser (xlinks2) is preferable for "
    echo "  viewing pictures and so on, although elinks will also do this"
    echo "  with the fbi program. Elinks will also show most pdf files "
    echo "  using the fbgs program."
    echo
    fig-col
    echo "  Hit any key to return to the tools menu."
    read -s -n 1
    f-tools
    ;;
    7)
    unbold ; clear ; bold
    fig-col
    echo -e "\n  GNU Screen - Why Bother?\n"
    head-col
    echo -e "  You really should.\n"
    info-col
    echo "  GNU Screen multiplies the usefulness of INX. It enables additional"
    echo "  workspaces, and allows you to organise your applications as desired."
    echo
    echo "  In INX, it is easier to use than it would be with only a default configuration."
    echo "  Your home directory contains custom settings in \"hidden\" files that make Screen"
    echo "  show the various \"tabs\" or workspaces available. You can also see the date"
    echo "  and time at a glance."
    echo
    echo "  The GNU Screen menu has several pre-configured \"sessions\" that you can use."
    echo "  These are examples of what you can do. In any session, though, you can remove"
    echo "  or replace applications each in their own \"tab\"."
    echo
    echo "  Following the screen \"tour\" introduction from that menu will get you started."
    
    head-col
    echo -e "\n  s: Take me to the GNU Screen menu.\n"
    fig-col
    echo "  Hit any other key to return to the tools menu."
    read -s -n 1
    case $REPLY in
        s)
        f-tour
        ;;
        *)
        f-tools
        ;;
    esac
    ;;
    8)
    links2 -g -driver fb /usr/share/example-content/intro-linux/index.html
    f-tools
    ;;
    9)
    f-hints
    f-tools
    ;;
    f)
    export CALL=tools
    f-switch
    f-tools
    ;;
    m)
    f-menu
    ;;
    x)
    clear
    f-prompt
    ;;
    s)
    clear
    less $HOME/shortcuts
    f-tools
    ;;
    t)
    time-toggle
    f-tools
    ;;
    *)
    f-tools
    ;;
    
esac
    
}
