#!/bin/bash

function trap_control_signal()
{
  echo
  echo "ATTENTION:"
  echo "The <CTRL><\> signal was caught"
  echo "exiting..."
  echo
  echo
}

trap trap_control_signal 3

clear
echo "Entering sleep mode"
echo "Press <CTRL> plus backslash (i.e. \) to see what happens"
sleep 1000
