Path: utzoo!mnetor!uunet!mcvax!eutrc3!wswietse From: wswietse@eutrc3.UUCP (Wietse Venema) Newsgroups: comp.unix.questions Subject: Re: Need help with NROFF, VI Message-ID: <185@eutrc3.UUCP> Date: 25 Feb 88 11:49:03 GMT References: <2519@mibte.UUCP> Organization: Tech. Univ. Eindhoven, Neth. Lines: 17 Keywords: escape character ($1b) Summary: use a filter (this is unix) In article <2519@mibte.UUCP>, jbh@mibte.UUCP (James Harvey) writes: > Question: > How does one get an escape sequence out of NROFF? I would > like to use bold face, italics, underline etc. that are available > from within the LaserJet. How about writing a small filter program that translates the underscores and backspaces in output from nroff to printer escape codes? I wrote various of them for matrix printers or daisywheels, and it even worked with eqn. lex(1) is quite convenient for this sort of work, and it certainly is fast enough for printers :-) Wietse Venema -- uucp: mcvax!eutrc3!wswietse | Eindhoven University of Technology bitnet: wswietse@heithe5 | Dept. of Mathematics and Computer Science surf: tuerc5::wswietse | Eindhoven, The Netherlands.