From jdc@pentarou.parodius.com  Fri Jun 17 08:40:26 2005
Return-Path: <jdc@pentarou.parodius.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0831E16A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Jun 2005 08:40:26 +0000 (GMT)
	(envelope-from jdc@pentarou.parodius.com)
Received: from mx1.parodius.com (mx1.parodius.com [64.62.145.229])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E50C243D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Jun 2005 08:40:25 +0000 (GMT)
	(envelope-from jdc@pentarou.parodius.com)
Received: from pentarou.parodius.com (mx1.parodius.com [64.62.145.229])
	by mx1.parodius.com (8.13.3/8.13.3) with ESMTP id j5H8ePr0054739
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Jun 2005 01:40:25 -0700 (PDT)
	(envelope-from jdc@pentarou.parodius.com)
Received: (from jdc@localhost)
	by pentarou.parodius.com (8.13.3/8.13.3/Submit) id j5H8ePkm054738;
	Fri, 17 Jun 2005 01:40:25 -0700 (PDT)
	(envelope-from jdc)
Message-Id: <200506170840.j5H8ePkm054738@pentarou.parodius.com>
Date: Fri, 17 Jun 2005 01:40:25 -0700 (PDT)
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reply-To: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: SGR disabled in share/tmac/troffrc -- deprecated?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         82353
>Category:       gnu
>Synopsis:       SGR disabled in share/tmac/troffrc -- deprecated?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 17 08:50:06 GMT 2005
>Closed-Date:    Fri Jun 03 14:39:03 UTC 2011
>Last-Modified:  Fri Jun 03 14:39:03 UTC 2011
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
Parodius Networking
>Environment:
System: FreeBSD pentarou.parodius.com 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu May 12 04:37:52 PDT 2005 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PENTAROU i386
>Description:
	SGR is disabled in share/tmac/troffrc.  This stems from a change applied
	nearly 3 years ago by ru@:

	http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/groff/tmac/troffrc.diff?r1=1.13&r2=1.14&f=h

	I realise some terminals don't support the new method of SGR (using literal ANSI
	characters for b/it/un instead of the hackish method that involves backspace),
	but since Groff 1.19 was imported, grotty(1) has the GROFF_NO_SGR environment
	variable which can toggle that.

	I feel a better solution would be to remove the SGR disable in troffrc and instead
	set GROFF_NO_SGR=TRUE in /etc/login.conf ?  Then those of us who want SGR can unset
	GROFF_NO_SGR in our dotfiles...

	The main reason I'm requesting this is because it's blocking our ability to
	render manpages which use colour (as well as set up our own custom termcap
	which maps b/it/un to different colours for non-coloured manpages).
>How-To-Repeat:
	n/a
>Fix:
	n/a

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Fri Sep 23 12:59:16 GMT 2005 
Responsible-Changed-Why:  
One day when I touch the Groff topic again I'll look into this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82353 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: gnu/82353: commit references a PR
Date: Fri,  3 Jun 2011 12:04:16 +0000 (UTC)

 Author: ru
 Date: Fri Jun  3 12:02:53 2011
 New Revision: 222648
 URL: http://svn.freebsd.org/changeset/base/222648
 
 Log:
   Re-enable SGR support (ANSI color escapes) in grotty(1) by default.
   Our man(1) and bsd.doc.mk still disable it for POLA reasons via the
   -c option to grotty(1).
   
   PR:		gnu/82353
 
 Modified:
   head/contrib/groff/tmac/troffrc
 
 Modified: head/contrib/groff/tmac/troffrc
 ==============================================================================
 --- head/contrib/groff/tmac/troffrc	Fri Jun  3 11:58:17 2011	(r222647)
 +++ head/contrib/groff/tmac/troffrc	Fri Jun  3 12:02:53 2011	(r222648)
 @@ -50,12 +50,4 @@ troffrc!X100 troffrc!X100-12 troffrc!lj4
  .\" Handle paper formats
  .do mso papersize.tmac
  .
 -.\" Disable SGR support in grotty(1).
 -.if n \{\
 -.  do nop \X'tty: sgr 0'
 -.  sp -1
 -.  nr nl 0-1
 -.  nr % -1
 -.\}
 -.
  .\" Don't let blank lines creep in here.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Fri Jun 3 14:36:40 UTC 2011 
State-Changed-Why:  
SGR was re-enabled in 9.0-CURRENT, support for colorized manpages 
was added to man(1). 

I'm closing this PR because I'm not planning on back-porting this 
to earlier branches due to a different implementation of man(1). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82353 
>Unformatted:
