From owner-freebsd-questions@FreeBSD.ORG Sat May 7 20:46:08 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 252C316A4DD for ; Sat, 7 May 2005 20:46:08 +0000 (GMT) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7597743DB0 for ; Sat, 7 May 2005 20:46:04 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 2940 invoked by uid 207); 7 May 2005 20:46:03 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.18):. Processed in 1.01297 secs); 07 May 2005 20:46:03 -0000 Received: from dialup18.ach.sch.gr (HELO gothmog.gr) ([81.186.70.18]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 7 May 2005 20:46:01 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j47KaGAU021974; Sat, 7 May 2005 23:36:17 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j47KaFB2021958; Sat, 7 May 2005 23:36:15 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 7 May 2005 23:36:13 +0300 From: Giorgos Keramidas To: Steven Friedrich Message-ID: <20050507203612.GB9298@gothmog.gr> References: <200505071603.32606.FreeBSD@InsightBB.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505071603.32606.FreeBSD@InsightBB.com> cc: freebsd-questions@freebsd.org Subject: Re: using groff macros X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2005 20:46:08 -0000 On 2005-05-07 16:03, Steven Friedrich wrote: > I'm experimenting with groff macros and I've placed '.B some text' > into a file. I don't know what command line options to get groff to > spit it out as bold text. > > I've tried groff -man -T ascii filename | more > > but it just swallows the text. I've read many man pages but I'm not > getting a thread to follow. Just a plain .B is not enough for groff to make text bold. The -man macros require other troff requests too, before they output any text on a page. Try the following two examples, for instance, and see the difference in the output they produce: 1. Bold text shouldn't be visible (but it's still there). cat < About ten years ago I used nroff on a Gould UTX-32 (Unix) system, > but I can't remember much. I believe I simply used 'nroff -man > filename'. > > What I'm actually trying to do is create fortunes with bold, italic, > and underlined words. I redirected man pages into a file and > discovered that S backspace S will produce a bold S, and _ backspace > S will produce S in reverse video. I added sequences like this to > my fortune file, but then it's a bear to read. So I was hoping to > use something from the roff family and their macros. You don't really need groff for that. Plain terminal escape sequences can yield better output than groff-formatted material: $ echo -e '\033[1mfoo\033[0m: an example of \033[4mbar\033[0m.' - Giorgos