diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2000-04-01 00:21:25 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2000-04-01 00:21:25 +0000 |
commit | 03f6c7f279fe9cde66d1a56b02ce325f26da64f6 (patch) | |
tree | 51ce49d8afa742041e608450b2a4c358b65a712a /editors/mg2a/patches/patch-ab | |
parent | fa80616d5440b3f5d99f16372d0c5f1f0d824d91 (diff) | |
download | pkgsrc-03f6c7f279fe9cde66d1a56b02ce325f26da64f6.tar.gz |
initial import of mg2a-1.10.
Mg (mg) is a Public Domain EMACS style editor. It is "broadly"
compatible with GNU Emacs. Mg was formerly named MicroGnuEmacs,
but is not associated with the GNU project.
This program is intended to be a small, fast, and portable editor for
people who can't (or don't want to) run real Emacs.
Diffstat (limited to 'editors/mg2a/patches/patch-ab')
-rw-r--r-- | editors/mg2a/patches/patch-ab | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/editors/mg2a/patches/patch-ab b/editors/mg2a/patches/patch-ab new file mode 100644 index 00000000000..72341904a6b --- /dev/null +++ b/editors/mg2a/patches/patch-ab @@ -0,0 +1,39 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/04/01 00:21:27 dmcmahill Exp $ + +--- ./sys/bsd/ttyio.c.orig Sun Jul 3 10:51:02 1988 ++++ ./sys/bsd/ttyio.c Thu Mar 30 08:35:33 2000 +@@ -35,13 +35,17 @@ + ttopen() { + register char *tv_stype; + char *getenv(), *tgetstr(), tcbuf[1024], err_str[72]; +- char *sprintf(); ++/* int sprintf(); refling was here */ + + /* do this the REAL way */ + if ((tv_stype = getenv("TERM")) == NULL) + { +- puts("Environment variable TERM not defined!"); +- exit(1); ++// refling --- took out the exit, added default ++ puts("Environment variable TERM not defined, trying vt102"); ++// exit(1); ++ sleep(1); ++ putenv("TERM=vt102"); ++ tv_stype = getenv("TERM"); + } + + if((tgetent(tcbuf, tv_stype)) != 1) +@@ -229,9 +233,11 @@ + panic(s) char *s; { + (void) fputs("panic: ", stderr); + (void) fputs(s, stderr); +- (void) fputc('\n', stderr); ++// (void) fputc('\n', stderr); refling ++ (void) fputc(13, stderr); // refling + (void) fflush(stderr); +- abort(); /* To leave a core image. */ ++// abort(); /* To leave a core image. */ refling ++ exit(1); // refling + } + #ifndef NO_DPROMPT + #include <sys/time.h> |