Merged revisions 330108 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Thu, 28 Jul 2011 21:46:27 +0000 (21:46 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 28 Jul 2011 21:46:27 +0000 (21:46 +0000)
https://origsvn.digium.com/svn/asterisk/branches/10

................
  r330108 | twilson | 2011-07-28 16:44:31 -0500 (Thu, 28 Jul 2011) | 9 lines

  Merged revisions 330107 via svnmerge from
  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/trunk@330109 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/term.c

index fbe093f..e757d93 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;