[comp.text.tex] Using the window support for MF

jkkalita@happy.colorado.edu (02/23/91)

Hi!

We just got MF installed under TeX3.0. I can run
MF alright, but I don't know how to get the 
window support working. We are running it on
a DECstation with X11 window system. I know
we have the code for the window support, but I don't
what needs to be done get the window support working.

As it stands now, when I run mf, it doesn't come up
with any window. Do I have to set up some environment
variables to get a window
 running?

Thanks!

Jugal

chet@Advansoft.COM (Chet Wood) (03/01/91)

>>>>> On 22 Feb 91 23:47:14 GMT, jkkalita@happy.colorado.edu said:

jkkalita> We just got MF installed under TeX3.0. I can run MF alright,
jkkalita> but I don't know how to get the window support working. We
jkkalita> are running it on a DECstation with X11 window system. I
jkkalita> know we have the code for the window support, but I don't
jkkalita> what needs to be done get the window support working.

This is a bug. The workaround is to set TERM=xterm in the environment.

Otherwise, you can apply this patch to metafont:

---------------------- cut here --------------------

*** extra.c     Tue Jan 29 10:22:05 1991
--- extra.c.orig        Thu Apr 19 21:40:36 1990
***************
*** 1086,1098 ****
  #ifndef TRAP
    register char *ttytype;

!
! /* ARC change: check for DISPLAY being set before checking TERM */
!   if (getenv("DISPLAY"))
!         ttytype = "xterm";
!   else
!         if ((ttytype = getenv ("TERM")) == NULL || !(isatty (fileno (stdout)))
)
!                 return (0);
    for (mfwp = mfwsw; mfwp->mfwsw_type != NULL; mfwp++)
      if (!strncmp (mfwp->mfwsw_type, ttytype, strlen (mfwp->mfwsw_type))
        || !strcmp (ttytype, "emacs"))
--- 1086,1093 ----
  #ifndef TRAP
    register char *ttytype;

!   if ((ttytype = getenv ("TERM")) == NULL || !(isatty (fileno (stdout))))
!     return (0);
    for (mfwp = mfwsw; mfwp->mfwsw_type != NULL; mfwp++)
      if (!strncmp (mfwp->mfwsw_type, ttytype, strlen (mfwp->mfwsw_type))
        || !strcmp (ttytype, "emacs"))

-------------------- cut here -----------------
--
Chet Wood                       ~                         (408)727-3357 X269
   chet@Advansoft.Com    .  Advansoft Research Corporation
     arc!chet@apple.COM    .      4301 Great America Parkway, 6th floor
            apple!arc!chet   .            Santa Clara, CA 95054, USA