]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 330107 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Thu, 28 Jul 2011 21:44:31 +0000 (21:44 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 28 Jul 2011 21:44:31 +0000 (21:44 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r330107 | twilson | 2011-07-28 16:42:41 -0500 (Thu, 28 Jul 2011) | 2 lines

  Make console colors work for TERM=xterm-256color
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@330108 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/term.c

index fbe093f800006b73e6574c728de80eedae3b0d1e..e757d9321f1a519fa6f3061bcfc67345bf423c6b 100644 (file)
@@ -144,6 +144,8 @@ int ast_term_init(void)
                        vt100compat = 1;
                } else if (!strcmp(term, "xterm-color")) {
                        vt100compat = 1;
+               } else if (!strcmp(term, "xterm-256color")) {
+                       vt100compat = 1;
                } else if (!strncmp(term, "Eterm", 5)) {
                        /* Both entries which start with Eterm support color */
                        vt100compat = 1;