Date: Fri, 12 Sep 1997 12:59:40 -0500 (CDT) From: Dan Nelson <dnelson@emsphone.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/4521: patch for editor 'joe', in ports Message-ID: <199709121759.MAA20727@dan.emsphone.com> Resent-Message-ID: <199709121800.LAA23778@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4521 >Category: ports >Synopsis: 'Joe' editor does not show control-chars in text >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 12 11:00:01 PDT 1997 >Last-Modified: >Originator: Dan Nelson >Organization: Executive Marketing Services >Release: FreeBSD 2.2-970701-RELENG i386 >Environment: >Description: On a terminal without underline escape sequences, the 'joe' editor displays control chars without any special formatting; i.e. ^A would look like "a". On xterms, the letter shows up as underlined. >How-To-Repeat: Load up joe. type in `a (puts a ^a into the editor screen) -or- type in ^K-H (opens help window; group titles "CURSOR", "SEARCH", etc, should be underlined) >Fix: patch joe so that if underline is unavailable, but bold is, display underlined characters with the bold escape codes. file /usr/ports/editors/joe/patch-ac: --- 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"); >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709121759.MAA20727>