+#if defined(A_BOLD) && defined(A_NORMAL) && defined(A_DIM)
+ const char *p = str, *start = str;
+ char *tmp;
+ int pos = 0;
+
+ while(1) {
+ if(!*p || strchr("<>", *p)) {
+ if(p - start > 0) {
+ wattrset(bottom, (*p == '>') ? A_BOLD : A_NORMAL);
+ tmp = xstrndup(start, p - start);
+ mvwaddstr(bottom, 1, pos, tmp);
+ pos += strwidth(tmp);
+ free(tmp);
+ }
+ if(*p) {
+ start = p + 1;
+
+ /* show tag markers */
+ wattrset(bottom, A_DIM);
+ mvwaddch(bottom, 1, pos++, *p);
+ }
+ }
+
+ if(!*p) {
+ wattrset(bottom, A_NORMAL);
+ break;
+ }
+
+ p++;
+ }
+#else