#!/bin/sh
#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: xlogout,v 1.160 1999/04/14 09:29:33 vltsccm Exp $" 
#
# xlogout
#
# who        when        what
# ---------  ----------  ----------------------------------------------
# G.FILIPPI  09/12/1993  created
#

#************************************************************************
#   NAME
#   xlogout - emulate xlogout when not provided by the X11 implementation
#
#   SYNOPSIS
#
#   DESCRIPTION
#
#   On Solaris 2, there is no xmessage utility, so xlogout, as on te1,
#   cannot be implemented. This simple script promts the user to confirm
#   the logout.
#
#   FILES
#   /vlt/System/Xclients     calls this file
#
#   ENVIRONMENT
#
#   RETURN VALUES
#
#   CAUTIONS
#
#   EXAMPLES
#
#   SEE ALSO   
#
#   BUGS     
#   It should be substituted by xlogout, as xmessage or similar utility is
# available.
#------------------------------------------------------------------------------
#
while clear
do
#
   cat <<xyz

(This is a temporary implementation of the logout confirmation window
(XMESSAGE is not available on Solaris2 and I have not yet found a better 
solution. SORRY FOR THE INCONVENIENCE, Giorgio  09/12/93)

       +---------+
    To | Cancel  | the logout request, iconize this window.
       +---------+


       +---------+
    To | Confirm | the logout type  OK  and <Enter>.
       +---------+



xyz
    echo "option: \c"
    read OPTION
    if [ "$OPTION" = "OK" ]
    then
        exit
    fi
done
#
#end-of-procedure
