make joe available to use .@7 termcap entries;
do not install joe termcap/terminfo files - joe works fine with system ones.
This commit is contained in:
parent
1b8781d79d
commit
fb02d5c4a9
@ -1,5 +1,5 @@
|
||||
*** Makefile.orig Thu Apr 16 17:56:49 1998
|
||||
--- Makefile Thu Apr 16 17:57:27 1998
|
||||
*** Makefile.orig Mon Jan 23 12:01:28 1995
|
||||
--- Makefile Mon Sep 28 16:37:20 1998
|
||||
***************
|
||||
*** 10,17 ****
|
||||
# to go:
|
||||
@ -19,3 +19,30 @@
|
||||
|
||||
# If you want to use TERMINFO, you have to set
|
||||
# the following variable to 1. Also you have to
|
||||
***************
|
||||
*** 115,126 ****
|
||||
chmod a+r $(WHERERC)/jpicorc
|
||||
chmod a+r $(WHEREMAN)/joe.1
|
||||
chmod a+x $(WHEREJOE)/termidx
|
||||
! rm -f $(WHERERC)/termcap
|
||||
! cp termcap $(WHERERC)/termcap
|
||||
! chmod a+r $(WHERERC)/termcap
|
||||
! rm -f $(WHERERC)/terminfo
|
||||
! cp terminfo $(WHERERC)/terminfo
|
||||
! chmod a+r $(WHERERC)/terminfo
|
||||
|
||||
# Cleanup proceedure
|
||||
|
||||
--- 115,126 ----
|
||||
chmod a+r $(WHERERC)/jpicorc
|
||||
chmod a+r $(WHEREMAN)/joe.1
|
||||
chmod a+x $(WHEREJOE)/termidx
|
||||
! # rm -f $(WHERERC)/termcap
|
||||
! # cp termcap $(WHERERC)/termcap
|
||||
! # chmod a+r $(WHERERC)/termcap
|
||||
! # rm -f $(WHERERC)/terminfo
|
||||
! # cp terminfo $(WHERERC)/terminfo
|
||||
! # chmod a+r $(WHERERC)/terminfo
|
||||
|
||||
# Cleanup proceedure
|
||||
|
||||
|
@ -1,54 +1,20 @@
|
||||
*** termcap.c.orig Thu Apr 16 18:04:11 1998
|
||||
--- termcap.c Thu Apr 16 18:05:15 1998
|
||||
*** termcap.c.orig Mon Sep 28 16:33:10 1998
|
||||
--- termcap.c Mon Sep 28 16:33:31 1998
|
||||
***************
|
||||
*** 153,159 ****
|
||||
char *tp, *pp, *qq, *namebuf, **npbuf, *idxname;
|
||||
int sortsiz;
|
||||
|
||||
! if(!name && !(name=joeterm) && !(name=getenv("TERM"))) return 0;
|
||||
cap=(CAP *)malloc(sizeof(CAP));
|
||||
cap->tbuf=vsmk(4096);
|
||||
cap->abuf=0;
|
||||
--- 153,159 ----
|
||||
char *tp, *pp, *qq, *namebuf, **npbuf, *idxname;
|
||||
int sortsiz;
|
||||
|
||||
! if(!name && !(name=joeterm) && !(name=(char *)getenv("TERM"))) return 0;
|
||||
cap=(CAP *)malloc(sizeof(CAP));
|
||||
cap->tbuf=vsmk(4096);
|
||||
cap->abuf=0;
|
||||
***************
|
||||
*** 175,190 ****
|
||||
cap->sort=(struct sortentry *)malloc(sizeof(struct sortentry)*(sortsiz=64));
|
||||
cap->sortlen=0;
|
||||
|
||||
! tp=getenv("TERMCAP");
|
||||
|
||||
if(tp && tp[0]=='/') namebuf=vsncpy(NULL,0,sz(tp));
|
||||
else
|
||||
{
|
||||
if(tp) cap->tbuf=vsncpy(sv(cap->tbuf),sz(tp));
|
||||
! if((tp=getenv("TERMPATH"))) namebuf=vsncpy(NULL,0,sz(tp));
|
||||
else
|
||||
{
|
||||
! if((tp=getenv("HOME")))
|
||||
namebuf=vsncpy(NULL,0,sz(tp)),
|
||||
namebuf=vsadd(namebuf,'/');
|
||||
else
|
||||
--- 175,190 ----
|
||||
cap->sort=(struct sortentry *)malloc(sizeof(struct sortentry)*(sortsiz=64));
|
||||
cap->sortlen=0;
|
||||
|
||||
! tp=(char *)getenv("TERMCAP");
|
||||
|
||||
if(tp && tp[0]=='/') namebuf=vsncpy(NULL,0,sz(tp));
|
||||
else
|
||||
{
|
||||
if(tp) cap->tbuf=vsncpy(sv(cap->tbuf),sz(tp));
|
||||
! if((tp=(char *)getenv("TERMPATH"))) namebuf=vsncpy(NULL,0,sz(tp));
|
||||
else
|
||||
{
|
||||
! if((tp=(char *)getenv("HOME")))
|
||||
namebuf=vsncpy(NULL,0,sz(tp)),
|
||||
namebuf=vsadd(namebuf,'/');
|
||||
else
|
||||
*** 275,281 ****
|
||||
*pp++=0;
|
||||
loop1:
|
||||
if(pp[0]==' ' || pp[0]=='\t') goto loop;
|
||||
! for(q=0;pp[q] && pp[q]!='#' && pp[q]!='=' && pp[q]!='@' && pp[q]!=':';++q);
|
||||
qq=pp;
|
||||
c=pp[q]; pp[q]=0;
|
||||
if(c) pp+=q+1;
|
||||
--- 275,282 ----
|
||||
*pp++=0;
|
||||
loop1:
|
||||
if(pp[0]==' ' || pp[0]=='\t') goto loop;
|
||||
! q=0; if (pp[q]=='@') q++;
|
||||
! for(;pp[q] && pp[q]!='#' && pp[q]!='=' && pp[q]!='@' && pp[q]!=':';++q);
|
||||
qq=pp;
|
||||
c=pp[q]; pp[q]=0;
|
||||
if(c) pp+=q+1;
|
||||
|
39
editors/joe/patches/patch-ah
Normal file
39
editors/joe/patches/patch-ah
Normal file
@ -0,0 +1,39 @@
|
||||
*** joerc.orig Mon Sep 28 16:35:30 1998
|
||||
--- joerc Mon Sep 28 16:36:16 1998
|
||||
***************
|
||||
*** 277,283 ****
|
||||
.kl Left
|
||||
.kr Right
|
||||
.kh Home
|
||||
! .kH End
|
||||
.kI Insert
|
||||
.kD Delete
|
||||
.kP PgUp
|
||||
--- 277,283 ----
|
||||
.kl Left
|
||||
.kr Right
|
||||
.kh Home
|
||||
! .kH or .@7 End
|
||||
.kI Insert
|
||||
.kD Delete
|
||||
.kP PgUp
|
||||
***************
|
||||
*** 477,482 ****
|
||||
--- 477,483 ----
|
||||
eof ^K ^V
|
||||
eof ^K v
|
||||
eol .kH Go to end of line
|
||||
+ eol .@7
|
||||
eol ^E
|
||||
exsave ^K X Save and exit
|
||||
exsave ^K ^X
|
||||
***************
|
||||
*** 570,575 ****
|
||||
--- 571,577 ----
|
||||
eofmenu ^K ^V
|
||||
eofmenu ^K v
|
||||
eolmenu .kH
|
||||
+ eolmenu .@7
|
||||
eolmenu ^E
|
||||
ltarwmenu .kl
|
||||
ltarwmenu ^B
|
@ -13,7 +13,5 @@ lib/joe/jmacsrc
|
||||
lib/joe/jstarrc
|
||||
lib/joe/rjoerc
|
||||
lib/joe/jpicorc
|
||||
lib/joe/termcap
|
||||
lib/joe/terminfo
|
||||
man/man1/joe.1
|
||||
@dirrm lib/joe
|
||||
|
Loading…
Reference in New Issue
Block a user