summaryrefslogtreecommitdiffstats
path: root/editors/joe
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1998-01-22 01:44:14 +0000
committerfenner <fenner@FreeBSD.org>1998-01-22 01:44:14 +0000
commit353d2c35196d08e7cf1f74012ce1494b757582fc (patch)
tree5231731cbf3f4d2d12a4336477e26ac963942231 /editors/joe
parent7d3d6283957886313260d09333f2eb8733942165 (diff)
downloadFreeBSD-ports-353d2c35196d08e7cf1f74012ce1494b757582fc.zip
FreeBSD-ports-353d2c35196d08e7cf1f74012ce1494b757582fc.tar.gz
Use bold (if available) when underlining is not available.
PR: ports/4521 Submitted by: Dan Nelson <dnelson@emsphone.com>
Diffstat (limited to 'editors/joe')
-rw-r--r--editors/joe/files/patch-ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/editors/joe/files/patch-ac b/editors/joe/files/patch-ac
new file mode 100644
index 0000000..a479bec
--- /dev/null
+++ b/editors/joe/files/patch-ac
@@ -0,0 +1,16 @@
+--- scrn.c.old Thu Oct 6 02:10:07 1994
++++ scrn.c Thu Sep 11 11:45:47 1997
+@@ -288,6 +288,12 @@
+ if(!(t->uc=jgetstr(t->cap,"uc"))) if(t->ul) t->uc="_";
+ if(t->uc) t->avattr|=UNDERLINE;
+
++/* If we don't have underline, but we do have bold, print underline as bold */
++if (!(t->avattr & UNDERLINE) && t->md != NULL)
++ {
++ t->us = t->md ; t->ue = t->me ; t->avattr |= UNDERLINE;
++ }
++
+ t->ms=getflag(t->cap,"ms");
+
+ t->da=getflag(t->cap,"da");
+
OpenPOWER on IntegriCloud