HDTenEightyP/NetNews huggingface dataset:
From: maf@dtek.chalmers.se (Martin Forssen)
Newsgroups: fj.mail-lists.x-window
Subject: OOPS, error in the sunkbd patch ditribution
Date: 23 Dec 92 01:05:36 GMT
Distribution: fj
Organization: Chalmers University of Technology, Gothenburg Sweden

Date: Tue, 22 Dec 92 16:46:54 -0500
Message-Id: <9212222146.AA14489@expo.lcs.mit.edu>

 I just noticed (thanks goes to fcolin@geant.cenatls.cena.dgac.fr
 (Francois Regis Colin)) that one of the files in sunkbd.921216.tar.Z
 is faulty. The file is sunKeyMap.c and the fault is that it is an
 old version. The symptoms are that the new compose combinations
 (for example e + ^) doesn't work. I have now updated the patch
 at export.lcs.mit.edu . If you want to verify which version of
 the file you have you should seek for sunType4ComposeMap. The
 following is an excerpt from the correct file at that place:

KeySym sunType4ComposeMap[] = {
        XK_space,       XK_space,       XK_nobreakspace,
        XK_exclam,      XK_exclam,      XK_exclamdown,
        XK_C,           XK_slash,       XK_cent,
        XK_c,           XK_slash,       XK_cent,

 If you have the old version of the file the third row in the array
 differs.

	/MaF

--
Martin Forssen: maf@dtek.chalmers.se or maf@math.chalmers.se
System administrator at math and dtek at Chalmers univ. of technology
From: etxmesa@eos.ericsson.se (Michael Salmon)
Newsgroups: fj.mail-lists.x-window
Subject: Re: what font is my xterm using?
Date: 22 Dec 92 15:21:39 GMT
Distribution: fj
Organization: Ericsson Telecom AB

Date: Tue, 22 Dec 1992 13:27:43 GMT
Message-Id: <1992Dec22.132743.9116@ericsson.se>
Newsgroups: comp.windows.x

In article <1992Dec22.124414.1080@cas.org>
lwv26@cas.org (Larry W. Virden) writes:
|> Isn't there an escape sequence one can use to set the font?  A script could
|> ask the user if they would like the shell to set things into an 
|> appropriate font for them...

The documented sequence ^[]50;$fontname^G works for me where ^[ is
escape, $fontname is your shell script variable holding the name of the
font and ^G is control G.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
From: dave@mizar.csis.dit.csiro.au (David Campbell)
Newsgroups: fj.mail-lists.x-window
Subject: What are the null macros for X types?
Date: 30 Dec 92 09:12:44 GMT
Distribution: fj
Organization: CSIRO Division of Information Technology

Date: Wed, 30 Dec 1992 07:11:40 GMT
Message-Id: <1992Dec30.071140.12876@csis.dit.csiro.au>
Newsgroups: comp.windows.x

X defines many types (eg Display, Window, Pixmap, Colormap).   Some of these
types are used as pointers (eg Display), but others are actually unsigned
longs (eg Window, Pixmap, Colormap).

Is XCreateWindow guaranteed to never return 0?  I can't seem to find any detail
of such semantics; otherwise I would assume that an acceptable null value for
a window is 0.  Is there a macro which can be used instead of hardcoding 0? There seem to be a handful of macros like NULL, None, etc but I don't know
which to use and NULL seems inappropriate because a Window is not a pointer.

Thanks,
-- 
  +--------------------------------------------------+-----------------------+
  | Dave Campbell                                    |            UNIX & C++ |
  | Phone: + 61 6 275 0944      Fax: + 61 6 257 1052 |   _--_|\       PLEASE |
  | CSIRO Division of Information Technology         |  /      \             |
  | Centre for Spatial Information Systems           |  \_.--._/ <- Canberra |
  | PO BOX 664                                       |        v              |
  | CANBERRA ACT 2601       +------------------------+                       |
  | AUSTRALIA               | dave@csis.dit.csiro.au |                       |
  +-------------------------+------------------------+-----------------------+
  |                       Get right.....or get left.                         |
  +--------------------------------------------------------------------------+
From: ram@ramsgi.erenj.com (ram rajagopalan)
Newsgroups: fj.mail-lists.x-window
Subject: Xremote with Multitech Modem ....
Date: 29 Dec 92 18:50:19 GMT
Distribution: fj
Organization: Exxon Research & Engineering Co.

Date: Tue, 29 Dec 1992 14:51:11 GMT
Message-Id: <1992Dec29.145111.3865@erenj.com>
Newsgroups: comp.windows.x


hi,

  I am using Xremote with Multitech Modem to dial into my office from home,
  and I having having problems with the connection.  Often it hangs and 
  I have to start all over again.  Has anybody encountered such a problem,
  also I would appreciate if anybody can send me the parameters to be set
  on the Multitech for optimum/reliable performance.  Thanks in advance.

  P.S
    Xremote is running on an NCD 17C X-terminal.

-- 
regards,

Ram.

==============================================================================

Ram  Rajagopalan                                        Phone: (908) 730-2556
Exxon Research & Engineering Co.                        Fax:   (908) 730-3042 
RT 22 East Annandale, NJ - 08801                        Email: ram@erenj.com

==============================================================================
From: bio@lis.rch.unimelb.edu.au (Minh Tran)
Newsgroups: fj.mail-lists.x-window
Subject: pcftobdf needed ??
Date: 22 Dec 92 06:16:46 GMT
Distribution: fj
Organization: Computer Science, University of Melbourne, Australia

Date: 22 Dec 92 05:29:39 GMT
Message-Id: <9235716.12984@mulga.cs.mu.OZ.AU>
Newsgroups: comp.windows.x


	Is there utility to convert dcf font format to bcf font format ??
	Or any one know where I can get fonts in bcf format for X11R5 ??
	Thanks.

	bio
From: beck@irzr17.inf.tu-dresden.de (Andre Beck)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Help with Colormaps
Date: 24 Dec 92 21:05:36 GMT
Distribution: fj
Organization: Dept. of Computer Science, TU Dresden, Germany.

Date: 23 Dec 1992 15:12:24 GMT
Message-Id: <1h9vkoINNeqv@irz401.inf.tu-dresden.de>
Newsgroups: comp.windows.x


Hi,

I think your problem is your Window Manager and not your X programming.
If you install different colormaps into a window, there will happen nothing
until the Window Manager decides to use this new colormap and installs it to
the server.

I install the cmaps directly to the server to get it running (for neat
fade-effects for instance).

Some WM's also complain about users installing new server cmaps (what is
in fact no ICCCM compliant feature), but thats another story.


--
+-o-+--------------------------------------------------------------+-o-+
| o | Your .signature timeout has expired, please choose a new one | o |
| o | This one is dedicated to all copy-and-edit-my-sign-guys...   | o |
| o |                        \\\----///                            | o |
| o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.DE | o |
+-o-+--------------------------------------------------------------+-o-+
From: steve@ecf.toronto.edu (Steve Kotsopoulos)
Newsgroups: fj.mail-lists.x-window
Subject: xvt 1.0 under IRIX 4.0.5
Date: 21 Dec 92 16:48:08 GMT
Distribution: fj
Organization: University of Toronto, Engineering Computing Facility

Date: Fri, 18 Dec 1992 20:10:21 GMT
Message-Id: <BzH1DA.87v@ecf.toronto.edu>
Newsgroups: comp.windows.x,comp.sys.sgi

I want to install xvt 1.0 (a replacement for xterm) on an SGI system.
It won't compile out-of-the-box, so before I try fixing it myself,
I thought I should ask if anyone else has already patched it.

If so, could you please post or email the patches?

Note: It needs to be modified to use SGI's _getpty() call.

Thanks
-- 
Steve Kotsopoulos                   mail:   steve@ecf.toronto.edu
Systems Analyst                     bitnet: steve@ecf.UTORONTO.BITNET
Engineering Computing Facility      uucp:   uunet!utai!ecf!steve
University of Toronto               phone:  (416) 978-5898
From: straw@cam.nist.gov (Mike_Strawbridge_x3852)
Newsgroups: fj.mail-lists.x-window
Subject: selecting in Motif ScrolledList causes core dump
Date: 25 Dec 92 00:07:10 GMT
Distribution: fj
Organization: National Institute of Standards & Technology, Gaithersburg, MD

Date: 24 Dec 92 13:54:50 GMT
Message-Id: <9956@oak.cam.nist.gov>
Newsgroups: comp.windows.x

I posted this to comp.windows.x.motif but have received no responses yet ...

I am running this on a Sun 4, SunOS 4.1.3, MIT X11R4 and Motif 1.1.

In my application I have a List contained inside a Scrolled Window. The list
has selectionPolicy set to BROWSE_SELECT. Sometimes, but not always, the
following action will cause the application to dump core ...

- Press the select mouse button and drag the cursor off the bottom of the
  list. The list scrolls to the bottom of the list and the last item is
  highlighted. ( i.e. the cursor is now outside of the scrolledList widget
  and the last item in the list is highlighted).

- Now release the select key.

The application dumps core with the following status from dbx:

  program terminated by signal SEGV (no mapping at the fault address)
  ClickElement() at 0x65e64
  BrowseScroll() at 0x66214
  DoOtherSources() at 0xf778174c
  XtAppNextEvent() at 0xf7781938
  XtAppMainLoop() at 0xf77799cc

Note that it does not crash every time you do this. Most of the time
it calls the XmBrowseSelectionCallback as expected.

Does anyone know what going on here? I don't have Motif source. Is this
a bug in Motif 1.1 or have I forgotten to configure something in the
List/ScrolledWindow combination?

Thanks.

Mike

-----------------------------------------------------------------------
NAME:   Michael Strawbridge                     TELE: (301) 975-3852
USMAIL: National Institute of Standards         ARPA: straw@cam.nist.gov
                and Technology                  UUCP: uunet!cme-durer!straw
        Rm. B-146, Bldg. 225
        Gaithersburg, MD  20899
From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
Newsgroups: fj.mail-lists.x-window
Subject: XFree86 & Orchid 32bit IIs ?
Date: 28 Dec 92 06:19:40 GMT
Distribution: fj
Organization: IBM Rochester, MN

Date: Sun, 27 Dec 1992 20:34:36 GMT
Message-Id: <1992Dec27.203436.11109@rchland.ibm.com>
Newsgroups: comp.windows.x

Anyone know if the Orchid 32bit IIs works with XFree86?  I've been looking
at the Orchid Prodesigner IIs as the card of choice, simply because it 
sounds guarenteed to work, but if the 32bit IIs works, I'd be tempted to
go with that.  Thanks for any info.

-- 
: jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
: shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
From: geert@ahold.nl (Geert Jonkheer)
Newsgroups: fj.mail-lists.x-window
Subject: XDM under SOLARIS 2.X
Date: 29 Dec 92 03:48:25 GMT
Distribution: fj
Organization: Ahold NV, Zaandam, Netherlands, EEC

Date: 28 Dec 92 08:58:16 GMT
Message-Id: <3801@ahds.ahold.nl>
Newsgroups: comp.windows.x

Hi,

We have troubles running XDM under Solaris 2.X. 
It occurs to me if SUN got rid of the XDMCP protocol when porting
XDM to SOLARIS 2.X, because XDM only works on an
SUN station with an attached monitor. Even when this
works, it looks like XDM is using the old setup for 
the passwords file. XDM looks for a password in the password
file which is changed under Solaris 2.X to the
shadow file.

Because we are a site which have X-terminals attached to a
SUN sparcstation/server we want to use XDM as it does
on many other platforms (for example DELL and even SUNs running
the old 4.1.X version of the operating system).

We are now using an old XDM program which came with 
an Tektronix X-terminal. For the time being this is ok, but
because this version works also with the old-style passwd
file this is not the recommended solution for the problem.
SUN won't help us.

Has somebody ported a working XDM to the Solaris 2.X platform?

If so, please contact me using email.

Thanks in advance,

Geert (geert@ccsds.ahold.nl)


-- 
================================================================================
 ============                  Geert W.T. Jonkheer.               =============
   ========== Ahold  N.V.  The  Netherlands  geert@ccsds.ahold.nl ========== 
      ===================================================================
From: markw@airgun.wg.waii.com (Mark Whetzel)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X11R3 error message explanation
Date: 31 Dec 92 21:53:22 GMT
Distribution: fj
Organization: Western Geophysical, Div. of Western Atlas Int'l, Houston, TX

Date: 31 Dec 92 17:51:10 GMT
Message-Id: <1744@airgun.wg.waii.com>
Newsgroups: comp.windows.x,comp.sys.ibm.pc.rt

In article <C0328q.JoF@cs.uiuc.edu>, bentrup@cs.uiuc.edu (John Bentrup) writes:
> 
> In trying to get X11R3 running on an IBM-RT(AIX) with only a minimum 
> amount of disk space, it has been necessary to move over the "minimum"
> number of files.  So far,  I can only get xclock to run.  
> 
> I get the error message:
> 
> 073-019  The aixwm command could not query the string width in SetUpWindow.
> 
> Any help on what file(s) I might still be missing?

You did not say if this was IBM's X11R3 for AIX/RT or your own
built X11, but here goes:

For IBM's X11R3 lpp product, you most likely are missing the
/usr/lpp/X11/defaults   directory and the files therein.
On my system these are:

total 268
drwxr-xr-x   2 root     system       288 Jan 23 1990  .
drwxr-xr-x   8 root     system       528 Feb  2 1990  ..
-rw-r--r--   2 root     system     14020 May  1 1989  .Xkeymap
-rw-r--r--   1 bin      bin         1471 May  1 1989  X.txt
-rw-r--r--   1 bin      bin         2189 Jul 20 1989  Xdefaults
-rw-r--r--   1 bin      bin          325 May  1 1989  Xfonts
-rw-r--r--   2 root     system     14020 May  1 1989  Xkeymap.us
-rw-r--r--   1 bin      bin         1582 Jul 20 1989  Xset.txt
-rw-r--r--   1 root     system      1771 Jan 23 1990  Xtools.txt
-rw-r--r--   1 bin      bin        31170 May  1 1989  keymap.uk
-rw-r--r--   1 bin      bin        34079 May  1 1989  keymap.us
-rw-r--r--   1 bin      bin         8116 May  1 1989  keymap.vt
-rw-r--r--   1 bin      bin         1754 May  1 1989  vtkeyboard

The aixwm window manager needs those text files to build up its 
popup memus, and what functions to invoke, and for the button bindings.

Make sure that you also have the directory
/usr/lpp/X11/messages
These contain the XLib error message database file.

Later,
markw
-- 
Mark Whetzel     My comments are my own, not my company's.
Western Geophysical - A division of Western Atlas International,
A Litton/Dresser Company           DOMAIN addr: markw@airgun.wg.waii.com
VOICE: (713) 963-2544		   UUNET address:  uunet!airgun!markw
From: mrapple@quack.sac.ca.us (Nick Sayer)
Newsgroups: fj.mail-lists.x-window
Subject: xdm won't use XDM-AUTHORIZATION-1
Date: 29 Dec 92 23:17:14 GMT
Distribution: fj
Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.

Date: 29 Dec 1992 19:47:42 UTC
Message-Id: <fXfSzHS@quack.sac.ca.us>
Newsgroups: comp.windows.x

X11R5, all fixes through 21, SunOS 4.1.3, ELC

I rebuilt everything with HasXdmAuth and HasSecureRPC (Yes, I got
Wraphelp.c :-) ). Now if I start xdm, then start 'Xsun -broadcast'
I get a login box, but the auth string is MIT-MAGIC-COOKIE-1, not
XDM-AUTHORIZATION-1. What do I have to do to get xdm to use
other auth strategies?

Also, (how) can I use XDM-AUTHORIZATION-1 with xinit? I tried
xauth add :0 XDM-AUTHORIZATION-1 [random hex string]
and Xsun -auth ~/.Xauthority, but attempting to start clients
under that configuration results in unable-to-open-display
sorts of messages. What do I put in place of [random hex string]
in the xauth line for XDM-AUTHORIZATION-1?

-- 
Nick Sayer <mrapple@quack.sac.ca.us> | Got a Toyota? Join the Toyota
N6QQQ @ N0ARY.#NOCAL.CA.USA.NOAM     | mailing list. Send requests to
+1 408 249 9630, log in as 'guest'   | toyota-request@quack.sac.ca.us
PGP 2.1 public key on request        |
From: earle@elroy.jpl.nasa.gov (Greg Earle - Gainfully Unemployed)
Newsgroups: fj.mail-lists.x-window
Subject: Re: xmail fails on compilation: get_wmShellWidgetClass error - Help
Date: 31 Dec 92 17:36:27 GMT
Distribution: fj
Organization: Gainfully unemployed

Date: Thu, 31 Dec 1992 08:58:19 GMT
Message-Id: <1992Dec31.085819.2817@elroy.jpl.nasa.gov>
Newsgroups: comp.windows.x

In article <1992Dec30.222431.1694@sol.ctr.columbia.edu> hiren@teknetix.com(Hiren Shah) writes:
>I am trying to compile xmail on a Sun SPARCstation IPX.
> 
>I am running version X11R4.
>I received the source files via ftp, and used xmkmf to create the makefile.
>
>make
...
>rm -f xmail
>cc -o xmail Mailwatch.o HelpText.o actions.o callMail.o callbacks.o confirm.o\
>directory.o environs.o
>handler.o mail.o parser.o  utils.o windows.o xmail.o -O   -lXaw -lXmu -lXt\
>-lXext -lX11 -lm
>ld: Undefined symbol
>   _get_wmShellWidgetClass
>   _get_applicationShellWidgetClass
>*** Error code 2
>make: Fatal error: Command failed for target `xmail'
...
>I tried to change the position of libXmu on the compile line, but that doesn't
>help.

Canonical answer:

(1) If you have MIT X11 R4, you'll probably need to recompile your libraries.
    Advise immediate upgrade to R5 pl 21 (-:

(2) If you are using OpenWindows 3.0/3.0.1, you'll need to get two patches
    from Sun, I think they are 100512 and 100573.  One supplies a new libXt
    and the other supplies a new libXmu which work around the problem caused
    by the new (4.1.1+patches/4.1.2/4.1.3) SunOS 4.1.x linker.

(3) Quick-fix workaround:  Change

	" ... -lXaw -lXmu -lXt" to " ... -lXaw -Bstatic -lXmu -Bdynamic -lXt"

    and recompile/re-link.

    Using "-Bstatic" before "-lXmu" will get you the 2 symbols you found in
    the statically-linked libXmu.a library.

--
	- Greg Earle				| Disclaimer: These are my
	  Itinerant Sun Consultant		| opinions only, and not those
	  isolar!earle@elroy.JPL.NASA.GOV	| of JPL - they only let me
	  (818) 353-8695			| post news through them ...
From: fluet@ee.ualberta.ca (Kevin Blaine Fluet)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Will Linux/386BSD/XFree86 run on my Gateway 2000 4DX2-66V?
Date: 22 Dec 92 19:07:52 GMT
Distribution: fj
Organization: University Of Alberta, Edmonton Canada

Date: Tue, 22 Dec 1992 09:59:59 GMT
Message-Id: <fluet.725018399@ee.ualberta.ca>
Newsgroups: comp.unix.pc-clone.32bit,comp.os.linux,comp.unix.bsd,comp.windows.x

>>>   (Micronics motherboard, 8MB RAM to be expanded to 16MB, VESA VL-Bus,

>   I thought that it was expandable to 64MB on motherboard !!!

It is expandable to 64 MB on board using 16MB SIMMs.  There are four banks
on the motherboard, and the standard 8MB configuration comes with two 4MB
SIMMs installed. 

By the way, Linux runs very well on my Gateway 4DX2-66V.  I am typing this
note in an xterm window under SLS linux .98p5 and Xfree1.1.  

----------------------------
Kevin Fluet
fluet@ee.ualberta.ca
----------------------------
From: oj@miki.pictel.com (Oliver Jones)
Newsgroups: fj.mail-lists.x-window
Subject: Re: An Open Challenge (it can't be done!)
Date: 24 Dec 92 20:02:11 GMT
Distribution: fj
Organization: PictureTel Corporation

Date: Wed, 23 Dec 1992 19:03:42 GMT
Message-Id: <1992Dec23.190342.1067@miki.pictel.com>
Newsgroups: comp.windows.x

In article <78716@hydra.gatech.EDU> gt4417a@prism.gatech.EDU (SKELTON,JOEL PHILLIP) writes:

>...The application is used for many
>kinds of area selection operations which require drawing selector
>boxes and polygons on the screen. ...

> - 8 bit image in backing pixmap used to update window
> - Image drawn in 8 bit X window
> - Want to draw diagonal lines on top of image that can
>   be removed quickly (i.e. replace them with the data they so
>   recently covered)
> - Can't do server extensions (too many platforms to support)

If I understand your requirement correctly, you want to draw visible,
yet ephemeral, annotations on your complex image, so your users can
see the region of interest they're selecting (or whatever).

>...we use GXxor mode to draw them. This is okay if the image is
>all one color but for a complex satellite image or a noisy image 
>an xor'ed line is nearly invisible. 

From your description, you're taking the approach that you want
your users to see the annotation clearly.  But, I don't see anything
in your requirements saying that the annotation has to be
black, or white, or any particular color.  Just visible.

So, why don't you animate the annotation somehow, so the users can
discern it via motion of some sort?  It's easy to discern changing
colors, even if the colors themselves don't have enough contrast
to tell them apart when drawn statically.

Draw all the annotation with XOR.  While the annotation is up,
continually erase and redraw it three times a second (from an Xt timer
proc) slightly differently.

Two approaches come to mind:  

(1) do xor drawing cycling through a series of about eight different
    foreground values -- for example:

        1111 1110    FE
        1111 1101    FD
        1111 1011    FB
        1111 0111    F7
        1110 1111    EF
        1101 1111    DF
        1011 1111    BF
        0111 1111    7F

    Even though the effect of XOR drawing in a random color map
    yields random colors, this technique should yield enough
    different random colors on your annotation lines over
    a period of a couple of seconds that users will see them
    clearly.

(2) draw the annotation lines dashed, and redraw them continually
    as you reset the origin of the dash pattern.   This will make
    the annotation lines crawl, the way lassos and marquees do
    on Mac drawing programs.
From: etxmesa@eos.ericsson.se (Michael Salmon)
Newsgroups: fj.mail-lists.x-window
Subject: Re: setting DISPLAY env variable
Date: 21 Dec 92 16:03:56 GMT
Distribution: fj
Organization: Ericsson Telecom AB

Date: 21 Dec 92 13:02:53 GMT
Message-Id: <1992Dec21.130253.1110@ericsson.se>
Newsgroups: comp.windows.x

In article <1h4bp2INNi8u@sol.deakin.OZ.AU>
rns@deakin.OZ.AU (Robert Sturrock) writes:
|> dwight@geohub.gcn.uoknor.edu (Dwight D. Moore) writes:
|> 
|> >Try using "xterm -display wkstn:0" instead of depending on the
|> >DISPLAY environment variable.  There are scripts around that
|> >will do an rsh and allow you to do the above command without
|> >explicitly logging into the machine.  We have setup window
|> >manager menus with pulldowns to do just this and popup
|> >a remote window.
|> 
|> I don't think this solves the problem.  My difficulty is not starting
|> up an xterm.  My problem is logging into a remote machine and having the
|> DISPLAY variable appropriately set on this machine to "wkstn:0.0".

This should be perhaps put in the FAQ, here is a previous response:

On our Apollo (BSD) systems I do:

set host = `hostname`
#
# Set the default X Windows server name - set to the name of the host
# the user logged in from, unless it was the terminal server (tserver).
# Also strip off the local domain name (.chem.utoronto.ca) if possible.
#
setenv DISPLAY "${host}:0"
set displayhost=`who am i | sed -e 's/.*(//' -e 's/).*$//' -e 's/\.chem\.utoronto\.ca$//'`
if ("$#displayhost" == "1") then
   if ("$displayhost" != "tserver") then
      setenv DISPLAY $displayhost\:0
   endif
endif
unset displayhost

and on our HP (SYSV-sortof) systems I do:

set host = `hostname`
#
# Set the default X Windows server name - set to the name of the host
# the user logged in from, unless it was the terminal server (tserver).
# Also strip off the local domain name (.chem.utoronto.ca) if possible.
#
setenv DISPLAY "${host}:0"
tty -s
if ("$status" == "0") then
   set displayhost=`who am i -R | sed -e 's/.*(//' -e 's/).*$//' -e 's/\.chem\.utoronto\.ca$//'`
   if ("$#displayhost" == "1") then
      if ("$displayhost" != "tserver") then
         setenv DISPLAY $displayhost\:0
      endif
   endif
   unset displayhost
endif

You will have to surround this with code to only do it for $TERM types
you want. You'll just have to trust the user hasn't messed with $TERM;
if the wrong $TERM is propagated from the remote system, tough luck for
the user. It is possible to send some messages to some terminals
and check the response (this works for vt100/xterm) so that might be
a way to check out the terminal type.
-- 
What are the chances that any computer system will ever "work" properly?
... and Slim just left town. -*- Mike Peterson, SysAdmin, U/Toronto Chemistry


-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm