$NetBSD: patch-src_output.cpp,v 1.2 2017/10/30 11:45:14 jperkin Exp $ Work around NetBSD curses. --- src/output.cpp.orig 2017-06-03 12:45:13.000000000 +0000 +++ src/output.cpp @@ -63,10 +63,14 @@ unsigned char index_for_color(rgb_color_ return c.to_term256_index(); } -static bool write_color_escape(char *todo, unsigned char idx, bool is_fg) { +static bool write_color_escape(const char *todo, unsigned char idx, bool is_fg) { if (term_supports_color_natively(idx)) { // Use tparm to emit color escape. +#ifdef __NetBSD__ writembs(tparm(todo, idx)); +#else + writembs(tparm((char *)todo, idx)); +#endif return true; } @@ -550,7 +554,7 @@ rgb_color_t parse_color(const wcstring & } /// Write specified multibyte string. -void writembs_check(char *mbs, const char *mbs_name, const char *file, long line) { +void writembs_check(const char *mbs, const char *mbs_name, const char *file, long line) { if (mbs != NULL) { tputs(mbs, 1, &writeb); } else {