diff options
Diffstat (limited to 'RichString.c')
-rw-r--r-- | RichString.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/RichString.c b/RichString.c index fbcb17f1..38cb76c5 100644 --- a/RichString.c +++ b/RichString.c @@ -8,13 +8,14 @@ #include <stdlib.h> #include <string.h> -#include <curses.h> #include <ctype.h> #include "debug.h" #include <assert.h> #ifdef HAVE_LIBNCURSESW -#include <wchar.h> +#include <curses.h> +#else +#include <ncursesw/curses.h> #endif #define RICHSTRING_MAXLEN 300 @@ -116,6 +117,10 @@ int RichString_findChar(RichString *this, char c, int start) { #endif +void RichString_prune(RichString* this) { + this->len = 0; +} + void RichString_setAttr(RichString *this, int attrs) { RichString_setAttrn(this, attrs, 0, this->len - 1); } |