summaryrefslogtreecommitdiffstats
path: root/RichString.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2009-06-02 04:51:23 +0000
committerHisham Muhammad <hisham@gobolinux.org>2009-06-02 04:51:23 +0000
commit6330ff3a0ac6d279132d36cea027ad3f065707b1 (patch)
tree70d894309bb92c9146fc4063e41d68686ffcfafd /RichString.c
parent1371ee28a7e953052e414dfd1641294852aa4458 (diff)
changes for htop 0.8.2
Diffstat (limited to 'RichString.c')
-rw-r--r--RichString.c9
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);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy