Bug 75310 - textproc/cdiff is useless on monochrome terminal
Summary: textproc/cdiff is useless on monochrome terminal
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: eivind
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 14:30 UTC by Alex Kapranoff
Modified: 2005-04-12 09:07 UTC (History)
0 users

See Also:


Attachments
file.diff (1.99 KB, patch)
2004-12-20 14:30 UTC, Alex Kapranoff
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Kapranoff 2004-12-20 14:30:35 UTC
Make cdiff(1) even more cooler by adding support for monochrome and
greyscale terminals. The problem has annoyed me much for about half a year.

Fix: The manpage diff looks ok, I derived it from mans in the base system,
but it is the first time I use mdoc macros.

Also, change code to return to normal attributes from "\e[m" to "\e[0m"
to be a little more standard.
Comment 1 Alex Kapranoff 2004-12-20 14:46:09 UTC
* FreeBSD-gnats-submit@FreeBSD.org <FreeBSD-gnats-submit@FreeBSD.org> [December 20 2004, 17:30]:
> >Category:       ports
> >Responsible:    freebsd-ports-bugs
> >Synopsis:       textproc/cdiff is useless on monochrome terminal
> >Arrival-Date:   Mon Dec 20 14:30:35 GMT 2004

Version in the Makefile should be bumped of course. I forgot to add
this to the patch, sorry.

-- 
Alex Kapranoff,
$n=["1another7Perl213Just3hacker49"=~/\d|\D*/g];
$$n[0]={grep/\d/,@$n};print"@$n{1..4}\n"
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2004-12-22 06:50:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->eivind

Over to maintainer.
Comment 3 Florent Thoumie freebsd_committer freebsd_triage 2005-04-12 09:06:32 UTC
State Changed
From-To: open->closed

Committed, thanks! 

Note that I've tested that it didn't break actual behavior, JFYI.