summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/visio.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/mbbsd/visio.c b/mbbsd/visio.c
index 20f711a6..bbc29ee8 100644
--- a/mbbsd/visio.c
+++ b/mbbsd/visio.c
@@ -159,6 +159,22 @@ prints(const char *fmt,...)
}
/**
+ * mvprints(int y, int x, fmt, ...): 使用 mvouts 輸出並格式化字串。
+ */
+void
+mvprints(int y, int x, const char *fmt, ...)
+{
+ va_list args;
+ char buff[VBUFLEN];
+
+ va_start(args, fmt);
+ vsnprintf(buff, sizeof(buff), fmt, args);
+ va_end(args);
+
+ mvouts(x, y, buff);
+}
+
+/**
* mvouts(y, x, str): = mvaddstr
*/
void