head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.50 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.48 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.46 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.44 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.42 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.40 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.38 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.36 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.34 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.32 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.30 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.28 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.26 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.24 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.22 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.20 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.18 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.16 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.14 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.12 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.10 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.8 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.6 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.4 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.2 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1; locks; strict; comment @# @; 1.4 date 2004.06.03.08.52.23; author adam; state dead; branches; next 1.3; 1.3 date 2003.04.27.17.45.31; author cjep; state Exp; branches; next 1.2; 1.2 date 2001.05.22.11.37.16; author wiz; state Exp; branches; next 1.1; 1.1 date 2000.03.24.14.46.47; author ad; state Exp; branches; next ; desc @@ 1.4 log @Changes 3.1: * Regex and incremental search (jmacs ^S) now work for UTF-8 * More and improved syntax highlighting files, including Mason * Use ^T E to set character set of file (hit at the prompt for a list of available character sets). * Can install custom "i18n" style byte oriented character set definition files. * No longer depends on iconv() (easier to compile) * Fix bug where right arrow was not doing right thing on last line * Fix UTF-8 codes between 0x10000 - 0x1FFFF * Now prints for unicode control characters * Improved smart home, indent, etc. * TAB completion is now more "bash"-like * When multiple files are given on command line, they end up in same order on the screen in JOE (before they were shuffled). * Menu size is now variable (40% of window size or smaller if it's not filled). * Added -icase option for case insensitive search by default. * Added -wrap option, which makes searches wrap * Added status line sequence %x: shows current context (function name if you're editing C). * Added tab completion at search prompts and ESC-Enter for tab completion within text windows. * Warn if file changed on save. * Added Ctrl-space block selection method * Added Ctrl-arrow key block selection method * ^K E asks if you want to load original version of the file * jmacs bugs fixes: upperase word, transpose words, ^X ^C is more emacs-like., ^X k and ^X ^V more like emacs. * Much improved compile system ^[ c * Much improved jpico * aspell support. @ text @$NetBSD: patch-ad,v 1.3 2003/04/27 17:45:31 cjep Exp $ --- main.c.orig 1995-01-22 00:21:08.000000000 +0000 +++ main.c @@@@ -18,6 +18,10 @@@@ JOE; see the file COPYING. If not, writ #include #include +#if defined(__FreeBSD__) || defined(__NetBSD__) +#include +#include +#endif #include "config.h" #include "w.h" #include "tty.h" @@@@ -187,6 +191,20 @@@@ char *envv[]; run=namprt(argv[0]); #endif +#if defined(__FreeBSD__) || defined(__NetBSD__) + setlocale(LC_ALL, ""); + for(c=0;c<256;c++) + { int a=0; + if(iscntrl(c)) + a|=UNDERLINE; + if((c&0x80)&&!isprint(c)) + a|=INVERSE; + xlata[c]=a; + if(isprint(c)) + xlatc[c]=c; + } +#endif + if(s=getenv("LINES")) sscanf(s,"%d",&lines); if(s=getenv("COLUMNS")) sscanf(s,"%d",&columns); if(s=getenv("BAUD")) sscanf(s,"%u",&Baud); @@@@ -234,20 +252,6 @@@@ char *envv[]; #else - s=vsncpy(NULL,0,sc(".")); - s=vsncpy(sv(s),sv(run)); - s=vsncpy(sv(s),sc("rc")); - c=procrc(cap,s); - if(c==0) goto donerc; - if(c==1) - { - char buf[8]; - fprintf(stderr,"There were errors in '%s'. Use it anyway?",s); - fflush(stderr); - fgets(buf,8,stdin); - if(buf[0]=='y' || buf[0]=='Y') goto donerc; - } - vsrm(s); s=getenv("HOME"); if(s) @ 1.3 log @Use time_t rather than guess int or long. Fixes build on NetBSD/shark et al. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Standardize patches (no functional change) @ text @d3 3 a5 3 --- scrn.h.orig Thu Oct 6 08:09:04 1994 +++ scrn.h @@@@ -254,10 +254,10 @@@@ d7 12 a18 9 #define xlat(a,c) \ ( \ - (dspasis && ((unsigned)(c)>=128)) ? \ + (dspasis && ((unsigned char)(c)>=128)) ? \ ((a)=0) \ : \ - (((a)=xlata[(unsigned)(c)]), ((c)=xlatc[(unsigned)(c)])) \ + (((a)=xlata[(unsigned char)(c)]), ((c)=xlatc[(unsigned char)(c)])) \ ) d20 38 a57 1 /* int eraeol(SCRN *t,int x,int y); @ 1.1 log @On NetBSD, look for termcap in /usr/share/misc. @ text @d3 3 a5 13 --- termcap.c.orig Fri Mar 24 14:36:38 2000 +++ termcap.c Fri Mar 24 14:37:22 2000 @@@@ -191,7 +191,11 @@@@ namebuf=0; namebuf=vsncpy(sv(namebuf),sc(".termcap ")); namebuf=vsncpy(sv(namebuf),sc(JOERC)); +#ifdef __NetBSD__ + namebuf=vsncpy(sv(namebuf),sc("termcap /usr/share/misc/termcap")); +#else namebuf=vsncpy(sv(namebuf),sc("termcap /etc/termcap")); +#endif } } d7 11 @