# This script sets environment for rxterm command.
# Originally copied from lucifer:~yashiro/bin/rxterm_env.
#  Ver. 1.1 (92-12-14).
# Copy this script under your bin directory, and insert the following
# statement in your ".cshrc".
#     source ~/bin/rxterm_env

if ($?DISPLAY == 0) then
       setenv XDISPLAY "lucifer:0.0";
else
    switch  (X"$DISPLAY")
    case 'Xunix:*'
       setenv XDISPLAY `hostname`:`expr X"$DISPLAY" :  X"unix:\(..*\)"`;
       breaksw;
    case 'X:0.0'
       setenv XDISPLAY `hostname`:0.0;
       breaksw;
    default:
       setenv XDISPLAY "$DISPLAY";
       breaksw;
    endsw
endif


