src/main.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- wterm-6.2.9.orig/src/main.c
+++ wterm-6.2.9/src/main.c
@@ -1660,6 +1660,14 @@
sprintf(term_string, "TERM=%s", rs_term_name);
putenv(term_string);
} else {
+ /* Debian hack: We at Debian use TERM=rxvt on color displays and
+ TERM=rxvt-m (the -m stands for monochrome, see terminfo(5)) on
+ monochrome displays. */
+#ifndef KANJI
+ if (Xdepth <= 2)
+ putenv("TERM=" TERMENV "-m");
+ else
+#endif
putenv("TERM=" TERMENV);
}