Jeff Abrahamson on Wed, 23 Jul 2003 11:21:06 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] given a display, find a host


I have a program that knows that it's window is displayed on
$DISPLAY. It would really like to know what host it is displayed on. I
wonder if this is possible.

Before you suggest grabbing the part before the colon, note that this
is all through ssh, so DISPLAY typically equals something like
localhost:17.0.


In fact, this is happening in emacs, but a non-emacs solution can
still be made to work.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: pgp6NN9iL0drA.pgp
Description: PGP signature