diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2008-02-24 03:11:57 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2008-02-24 03:11:57 +0000 |
commit | fa4a943c17e47bf910596a414fd7287983350b9b (patch) | |
tree | dc76cec18a505befc330e612e0a56bf1caa5ca49 /games/bsdgames/files/patch-hack_hack.tty.c | |
parent | 07bcc4091010f79f8d929d6ce22e51c7e3743b3f (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_0_0'.release/7.0.0
Notes
Notes:
svn path=/head/; revision=207820
svn path=/tags/RELEASE_7_0_0/; revision=207821; tag=release/7.0.0
Diffstat (limited to 'games/bsdgames/files/patch-hack_hack.tty.c')
-rw-r--r-- | games/bsdgames/files/patch-hack_hack.tty.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/games/bsdgames/files/patch-hack_hack.tty.c b/games/bsdgames/files/patch-hack_hack.tty.c deleted file mode 100644 index 07a126779f6a..000000000000 --- a/games/bsdgames/files/patch-hack_hack.tty.c +++ /dev/null @@ -1,42 +0,0 @@ -Index: hack/hack.tty.c -@@ -53,6 +53,7 @@ - */ - #ifdef BSD - #define V7 -+#elif POSIX - #else - #define USG - #endif /* BSD */ -@@ -82,6 +83,21 @@ - #define GTTY(x) (ioctl(0, TCGETA, x)) - #define STTY(x) (ioctl(0, TCSETA, x)) /* TCSETAF? TCSETAW? */ - -+#elif POSIX -+#include <termios.h> -+#define termstruct termios -+#define kill_sym c_cc[VKILL] -+#define erase_sym c_cc[VERASE] -+#define EXTABS OXTABS -+#define tabflgs c_oflag -+#define echoflgs c_lflag -+#define cbrkflgs c_lflag -+#define CBRKMASK ICANON -+#define CBRKON ! /* reverse condition */ -+#define OSPEED(x) cfgetospeed(x) -+#define GTTY(x) tcgetattr(fileno(stdin),x) -+#define STTY(x) tcsetattr(fileno(stdin),TCSANOW,x) /* TCSETAF? TCSETAW? */ -+ - #else /* V7 */ - - #include <sgtty.h> -@@ -169,6 +185,10 @@ - /* be satisfied with one character; no timeout */ - curttyb.c_cc[VMIN] = 1; /* was VEOF */ - curttyb.c_cc[VTIME] = 0; /* was VEOL */ -+#elif POSIX -+ /* be satisfied with one character; no timeout */ -+ curttyb.c_cc[VMIN] = 1; /* was VEOF */ -+ curttyb.c_cc[VTIME] = 0; /* was VEOL */ - #endif /* USG */ - change++; - } |