Path: utzoo!attcan!uunet!olivea!apple!arc!chet From: chet@Advansoft.COM (Chet Wood) Newsgroups: comp.text.tex Subject: Re: Using the window support for MF Message-ID: Date: 28 Feb 91 23:15:16 GMT References: <1991Feb22.174714.1@happy.colorado.edu> Sender: @advansoft.com Organization: Advansoft Research Corp, Santa Clara, CA Lines: 48 In-Reply-To: jkkalita@happy.colorado.edu's message of 22 Feb 91 23:47:14 GMT >>>>> 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