Stable: 2.4.4
Development: 2.5.0-alpha4
patch for xterm detection
Submitted by doj on Tue, 2010-02-02 18:38
Hello, I've added some more comparisions of the TERM environment variable to detect xterms and rxvt terminals.
Index: moc-2.4.4/interface_elements.c
===================================================================
--- moc-2.4.4.orig/interface_elements.c 2008-06-29 02:56:13.000000000 -0700
+++ moc-2.4.4/interface_elements.c 2010-02-02 10:26:45.000000000 -0800
@@ -2114,8 +2114,10 @@
char *term;
if ((((term = getenv("TERM")) && !strcmp(term, "xterm"))
- || !strcmp(term, "rxvt")
|| !strcmp(term, "xterm-color")
+ || !strcmp(term, "xterm-xfree86")
+ || !strcmp(term, "rxvt")
+ || !strcmp(term, "rxvt-color")
|| !strcmp(term, "rxvt-unicode")
|| !strcmp(term, "eterm")
|| !strcmp(term, "Eterm")))
Note about this forum’s behaviour
Hi, you can also edit your post — the original then gets a new time stamp as if you deleted the whole topic and posted it again. Just a note :-)
Anyway, this patch looks good.
better patch formatting
Index: moc-2.4.4/interface_elements.c =================================================================== --- moc-2.4.4.orig/interface_elements.c 2008-06-29 02:56:13.000000000 -0700 +++ moc-2.4.4/interface_elements.c 2010-02-02 10:26:45.000000000 -0800 @@ -2114,8 +2114,10 @@ char *term; if ((((term = getenv("TERM")) && !strcmp(term, "xterm")) - || !strcmp(term, "rxvt") || !strcmp(term, "xterm-color") + || !strcmp(term, "xterm-xfree86") + || !strcmp(term, "rxvt") + || !strcmp(term, "rxvt-color") || !strcmp(term, "rxvt-unicode") || !strcmp(term, "eterm") || !strcmp(term, "Eterm")))