When in check, complain with the requested move.
[gnushogi.git] / gnushogi / cursesdsp.c
index f4c00ec..27a2f72 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <ctype.h>
 #include <signal.h>
+#include <stdio.h>
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -150,6 +151,25 @@ Curses_ShowMessage(char *s)
 
 
 void
+Curses_Printf(const char *format, ...)
+{
+    static char buffer[60];
+    va_list ap;
+    va_start(ap, format);
+    vsnprintf(buffer, sizeof(buffer), format, ap);
+    printw("%s", buffer);
+    va_end(ap);
+}
+
+
+void
+Curses_doRequestInputString(const char* fmt, char* buffer)
+{
+    FLUSH_SCANW(fmt, buffer);
+}
+
+
+void
 ShowNodeCnt(long NodeCnt)
 {
     gotoXY(TAB, 22);