]> git.eshelyaron.com Git - emacs.git/commitdiff
(term_init): If no `se', use `me';
authorRichard M. Stallman <rms@gnu.org>
Sat, 12 Feb 1994 22:32:39 +0000 (22:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 12 Feb 1994 22:32:39 +0000 (22:32 +0000)
if no `me' either, don't use standout mode at all.

src/term.c

index 50651a64c7896b6283f43dd8aa8e7e35f67e4b64..fc3d0c7d9139d18cb82653a3c42ab614d4cd691e 100644 (file)
@@ -1506,6 +1506,17 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n",
       TS_standout_mode = tgetstr ("us", address);
     }
 
+  /* If no `se' string, try using a `me' string instead.
+     If that fails, we can't use standout mode at all.  */
+  if (TS_end_standout_mode == 0)
+    {
+      char *s = tgetstr ("me");
+      if (s != 0)
+       TS_end_standout_mode = s;
+      else
+       TS_standout_mode = 0;
+    }
+
   if (TF_teleray)
     {
       Wcm.cm_tab = 0;