summaryrefslogtreecommitdiff
path: root/games/velena/patches/patch-ab
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-02-02 17:05:00 +0000
committerrillig <rillig@pkgsrc.org>2008-02-02 17:05:00 +0000
commit8844256f9106fb18257319d086615e6fe55626da (patch)
tree2d4c4626455db2dc6db5ea9e8120b17b5facf7cd /games/velena/patches/patch-ab
parent5c268bf5536074fec958129ebbbc5388e9a870b2 (diff)
downloadpkgsrc-8844256f9106fb18257319d086615e6fe55626da.tar.gz
Made stdout unbuffered, so that the program can be used by other
programs. PKGREVISION++
Diffstat (limited to 'games/velena/patches/patch-ab')
-rw-r--r--games/velena/patches/patch-ab20
1 files changed, 16 insertions, 4 deletions
diff --git a/games/velena/patches/patch-ab b/games/velena/patches/patch-ab
index 95149215da5..24b17101b92 100644
--- a/games/velena/patches/patch-ab
+++ b/games/velena/patches/patch-ab
@@ -1,8 +1,20 @@
-$NetBSD: patch-ab,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+$NetBSD: patch-ab,v 1.2 2008/02/02 17:05:00 rillig Exp $
---- cmdline.c.orig 2007-07-25 01:53:41.000000000 +0200
-+++ cmdline.c 2007-07-25 01:54:04.000000000 +0200
-@@ -51,7 +51,8 @@ void command_line_input(struct board *bo
+--- cmdline.c.orig 1997-07-27 17:14:18.000000000 +0200
++++ cmdline.c 2008-02-02 18:02:11.000000000 +0100
+@@ -42,16 +42,19 @@ void command_line_input(struct board *bo
+ int flag = 1,answer;
+ char st[80];
+
+- printf("Enter positions in the form x+y+'0', where:\n");
++ setvbuf(stdout, NULL, _IONBF, 0);
++ printf("Enter positions in the form xy0, where:\n");
+ printf("x is the level of play: 'a' = weak, 'b' = normal, 'c' = strong\n");
+ printf("y is a sequence of moves that brings to the position you want\n");
+ printf(" (columns are numbered from 1 to 7)\n");
+ printf("'0' is the 48 ASCII char which tells Velena where the string ends\n");
++ printf("Example: c4444350\n");
+ printf("\nEnter 'q' to quit\n\n");
do {
printf(">"); // Waiting for the user to enter the string