#!/bin/bash
PATH=$PATH:/usr/local/lib/inx
. inx_essentials
maybe_switch

function f-why ()
{
clear
echo
fig-col
figlet "  inx"
echo
head-col
printf "\t\t"
echo "   ... is for people who:"
info-col
cat << EOWHY

  Want to learn a bit about the command line.

  Are curious about what is possible in a console/tty/virtual terminal.

  Want a live CD that can be used as a rescue disc.

  Just think it might be fun to run without X (the usual graphical desktop).


EOWHY

head-col
echo "  ... and inx"
info-col

cat << EODESCRIBE

  Is a collection of menu functions and scripts.

  Demonstrates some things that you might not be aware are possible.

  Tries not to be scary for beginners.

  Supplies some good capabilities for the more experienced.


EODESCRIBE

head-col
echo "  Hit any key to see some simple escape methods in case you get stuck..."
f-ttynum
read -s -n 1

clear
fig-col
figlet "  inx"
head-col
echo "  A few simple control shortcuts ... "
echo
printf "  "
bold ; bred ; yellow
printf "  CTRL+C "
bblack ; info-col
echo "  Stops a script or program in its tracks, and gives you a command prompt,"
echo "  Something like this:"
echo
unbold
white
echo "  $(tty | cut -d / -f 3):inx@inx:~ $ "
echo
printf "  "
bold ; bred ; yellow 
printf "  CTRL+D "
bblack ; info-col
echo "  EOF ( end of file ) - logs you out of a shell, or ends your input."
echo
echo "  CTRL+D will re-start an INX menu that you can use to navigate."
echo
echo "  If you drop to a command prompt, (deliberately or not) you can type"
echo 
printf "  "
yellow ; bred ; bold 
printf "  menu <enter> "
bblack
info-col
echo "		Or type"
echo
printf "  "
yellow ; bred ; bold 
printf "  inx <enter>  "
bblack 
info-col
echo "		if you like splash screens ... ;-)"
echo
head-col
echo "  Hit any key to return to the main INX menu from here."
info-col
f-ttynum
read -s -n 1

exec menu

}

f-why