diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/bsdgames/files/patch-phantasia::io.c | 26 | ||||
-rw-r--r-- | games/bsdgames/files/patch-phantasia::phantdefs.h | 13 | ||||
-rw-r--r-- | games/freebsd-games/files/patch-phantasia::io.c | 26 | ||||
-rw-r--r-- | games/freebsd-games/files/patch-phantasia::phantdefs.h | 13 |
4 files changed, 78 insertions, 0 deletions
diff --git a/games/bsdgames/files/patch-phantasia::io.c b/games/bsdgames/files/patch-phantasia::io.c new file mode 100644 index 000000000000..29f05cf1265f --- /dev/null +++ b/games/bsdgames/files/patch-phantasia::io.c @@ -0,0 +1,26 @@ +Index: phantasia/io.c +=================================================================== +RCS file: /var/fcvs/src/games/phantasia/Attic/io.c,v +retrieving revision 1.6 +diff -u -r1.6 io.c +--- phantasia/io.c 16 Nov 1999 02:57:33 -0000 1.6 ++++ phantasia/io.c 10 Sep 2003 09:52:52 -0000 +@@ -79,6 +79,9 @@ + case CH_NEWLINE: /* terminate string */ + break; + ++ case CH_CR: /* terminate string */ ++ break; ++ + case CH_REDRAW: /* redraw screen */ + clearok(stdscr, TRUE); + continue; +@@ -91,7 +94,7 @@ + + *inptr = '\0'; /* terminate string */ + } +- while (ch != CH_NEWLINE && inptr < cp + mx); ++ while (ch != CH_NEWLINE && ch != CH_CR && inptr < cp + mx); + } + /**/ + /************************************************************************ diff --git a/games/bsdgames/files/patch-phantasia::phantdefs.h b/games/bsdgames/files/patch-phantasia::phantdefs.h new file mode 100644 index 000000000000..bb9328acb189 --- /dev/null +++ b/games/bsdgames/files/patch-phantasia::phantdefs.h @@ -0,0 +1,13 @@ +Index: phantasia/phantdefs.h +=================================================================== +RCS file: /var/fcvs/src/games/phantasia/Attic/phantdefs.h,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 phantdefs.h +--- phantasia/phantdefs.h 4 Sep 1994 04:03:06 -0000 1.1.1.1 ++++ phantasia/phantdefs.h 10 Sep 2003 09:53:25 -0000 +@@ -136,4 +136,5 @@ + #define CH_KILL '\030' /* kill character (ctrl-X) */ + #define CH_ERASE '\010' /* erase character (ctrl-H) */ + #define CH_NEWLINE '\n' /* newline */ ++#define CH_CR '\r' /* carriage return */ + #define CH_REDRAW '\014' /* redraw screen character (ctrl-L) */ diff --git a/games/freebsd-games/files/patch-phantasia::io.c b/games/freebsd-games/files/patch-phantasia::io.c new file mode 100644 index 000000000000..29f05cf1265f --- /dev/null +++ b/games/freebsd-games/files/patch-phantasia::io.c @@ -0,0 +1,26 @@ +Index: phantasia/io.c +=================================================================== +RCS file: /var/fcvs/src/games/phantasia/Attic/io.c,v +retrieving revision 1.6 +diff -u -r1.6 io.c +--- phantasia/io.c 16 Nov 1999 02:57:33 -0000 1.6 ++++ phantasia/io.c 10 Sep 2003 09:52:52 -0000 +@@ -79,6 +79,9 @@ + case CH_NEWLINE: /* terminate string */ + break; + ++ case CH_CR: /* terminate string */ ++ break; ++ + case CH_REDRAW: /* redraw screen */ + clearok(stdscr, TRUE); + continue; +@@ -91,7 +94,7 @@ + + *inptr = '\0'; /* terminate string */ + } +- while (ch != CH_NEWLINE && inptr < cp + mx); ++ while (ch != CH_NEWLINE && ch != CH_CR && inptr < cp + mx); + } + /**/ + /************************************************************************ diff --git a/games/freebsd-games/files/patch-phantasia::phantdefs.h b/games/freebsd-games/files/patch-phantasia::phantdefs.h new file mode 100644 index 000000000000..bb9328acb189 --- /dev/null +++ b/games/freebsd-games/files/patch-phantasia::phantdefs.h @@ -0,0 +1,13 @@ +Index: phantasia/phantdefs.h +=================================================================== +RCS file: /var/fcvs/src/games/phantasia/Attic/phantdefs.h,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 phantdefs.h +--- phantasia/phantdefs.h 4 Sep 1994 04:03:06 -0000 1.1.1.1 ++++ phantasia/phantdefs.h 10 Sep 2003 09:53:25 -0000 +@@ -136,4 +136,5 @@ + #define CH_KILL '\030' /* kill character (ctrl-X) */ + #define CH_ERASE '\010' /* erase character (ctrl-H) */ + #define CH_NEWLINE '\n' /* newline */ ++#define CH_CR '\r' /* carriage return */ + #define CH_REDRAW '\014' /* redraw screen character (ctrl-L) */ |