#!/bin/sh
# Print a message in text or GUI mode
# License : GNU GPL
# (c) Eko M. Budi, 2004
# (c) Vector Linux, 2004

if [ "$DISPLAY" ]; then
   if which Xdialog &>/dev/null; then
     Xdialog --title "$1" --msgbox "\n
$2\n
$3" 0 0 2>/dev/null

   else
     xmessage -center -timeout 20 -title "$1" "$2 
$3"
   fi
else
   echo $1
   if [ $2 ]; then 
     echo $2
   fi
fi
