home *** CD-ROM | disk | FTP | other *** search
- --- Makefile.rtr Sat Jul 23 11:28:33 1994
- +++ Makefile Mon Jul 25 09:09:21 1994
- @@ -15,8 +15,9 @@
- # Initial revision
- #
- #
- -CFLAGS= -O
- -LIBS= -lcurses -ltermcap
- +CC=gcc
- +CFLAGS= -g
- +LIBS= -lcurses -ltermcap -lgen
-
- SRCS= createdb.c dbfunc.c dbio.c main.c printdb.c screen.c \
- searchdb.c selectdb.c util.c
- --- screen.c.rtr Sat Jul 23 11:28:59 1994
- +++ screen.c Mon Jul 25 09:08:04 1994
- @@ -21,6 +21,7 @@
- #include <curses.h>
- #include <stdio.h>
- #include "defs.h"
- +#define index strchr
-
- static int screen_inited = 0; /* for use with set/reset modes */
-
- @@ -65,6 +66,8 @@
- * is allowed basic EMACS-style line editing.
- */
- while ((c = getchar()) != EOF) {
- + if(c == '\r')
- + c = '\n';
- switch (c) {
- case CTRL('a'): /* beginning of line */
- col = col0;
- @@ -242,6 +245,8 @@
- * Read characters...
- */
- while ((c = getchar()) != EOF) {
- + if(c == '\r')
- + c = '\n';
- /*
- * If it's not a valid one, beep
- * and get another one.
- @@ -565,6 +570,8 @@
- * control characters.
- */
- while ((c = getchar()) != EOF) {
- + if(c == '\r')
- + c = '\n';
- /*
- * Get the current line and line length.
- */
- @@ -851,4 +858,3 @@
- noecho();
- cbreak();
- }
- -
-