From 83bd77d41e39def0ffb43560a38806fe4c010f6f Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 24 May 1998 00:48:03 +0000 Subject: Add a -loc flag to specify alternative auxiliary location information instead of the display name or tty. --- zwgc/zephyr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'zwgc/zephyr.c') diff --git a/zwgc/zephyr.c b/zwgc/zephyr.c index ded5e01..d15091b 100644 --- a/zwgc/zephyr.c +++ b/zwgc/zephyr.c @@ -35,6 +35,7 @@ static const char rcsid_zephyr_c[] = "$Id$"; #include "subscriptions.h" #include "variables.h" #include "pointer.h" +#include "main.h" #ifndef X_DISPLAY_MISSING #include "X_driver.h" #endif @@ -141,9 +142,11 @@ void zephyr_init(notice_handler) } /* Set hostname and tty for locations. If we support X, use the - * display string for the tty name. */ + * display string for the default tty name. */ + if (location_override) + tty = location_override; #ifndef X_DISPLAY_MISSING - if (dpy) + else if (dpy) tty = DisplayString(dpy); #endif error_code = ZInitLocationInfo(NULL, tty); -- cgit v1.2.3