From 8844256f9106fb18257319d086615e6fe55626da Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 2 Feb 2008 17:05:00 +0000 Subject: Made stdout unbuffered, so that the program can be used by other programs. PKGREVISION++ --- games/velena/patches/patch-ab | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'games/velena/patches/patch-ab') 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 -- cgit v1.2.3