summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index d0bb1db6..3ad264b9 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -422,6 +422,15 @@ igetch()
return 0;
}
+/**
+ * 根據 mode 來 strip 字串 str,並把結果存到 buf
+ * @param buf
+ * @param str
+ * @param mode enum {STRIP_ALL = 0, ONLY_COLOR, NO_RELOAD};
+ * STRIP_ALL: ??
+ * ONLY_COLOR: ??
+ * NO_RELOAD: 不 strip (?)
+ */
int
strip_ansi(char *buf, char *str, int mode)
{