changeset 71944:270a672fc28c

(init_display): Mention DISPLAY as well as TERM in err msg.
author Richard M. Stallman <rms@gnu.org>
date Mon, 17 Jul 2006 20:59:18 +0000
parents 88ec0239376a
children e89be002734a
files src/dispnew.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Mon Jul 17 20:58:27 2006 +0000
+++ b/src/dispnew.c	Mon Jul 17 20:59:18 2006 +0000
@@ -6825,9 +6825,15 @@
 For types defined in VMS, use  set term /device=TYPE.\n\
 For types not defined in VMS, use  define emacs_term \"TYPE\".\n\
 \(The quotation marks are necessary since terminal types are lower case.)\n");
-#else
-      fprintf (stderr, "Please set the environment variable TERM; see tset(1).\n");
-#endif
+#else /* not VMS */
+
+#ifdef HAVE_WINDOW_SYSTEM
+      if (inhibit_window_system)
+	fprintf (stderr, "Please set the environment variable TERM; see `tset'.\n");
+      else
+#endif /* HAVE_WINDOW_SYSTEM */
+	fprintf (stderr, "Please set the environment variable DISPLAY or TERM (see `tset').\n");
+#endif /* not VMS */
       exit (1);
     }