{"action":"closed","issue":{"url":"https://api.github.com/repos/joakim666/colortail/issues/4","labels_url":"https://api.github.com/repos/joakim666/colortail/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/joakim666/colortail/issues/4/comments","events_url":"https://api.github.com/repos/joakim666/colortail/issues/4/events","html_url":"https://github.com/joakim666/colortail/issues/4","id":961764,"number":4,"title":"colortail emits excessive color sequences","user":{"login":"phord","id":123908,"avatar_url":"https://avatars.githubusercontent.com/u/123908?v=3","gravatar_id":"","url":"https://api.github.com/users/phord","html_url":"https://github.com/phord","followers_url":"https://api.github.com/users/phord/followers","following_url":"https://api.github.com/users/phord/following{/other_user}","gists_url":"https://api.github.com/users/phord/gists{/gist_id}","starred_url":"https://api.github.com/users/phord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phord/subscriptions","organizations_url":"https://api.github.com/users/phord/orgs","repos_url":"https://api.github.com/users/phord/repos","events_url":"https://api.github.com/users/phord/events{/privacy}","received_events_url":"https://api.github.com/users/phord/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2011-05-26T23:12:43Z","updated_at":"2015-06-23T18:32:52Z","closed_at":"2015-06-23T18:32:52Z","body":"colortail seems to color each matched character individually instead of switching colors only when needed.  This is pretty wasteful and can cause secondary parsers to fail to match keywords.\r\n\r\n\r\n    echo 'COLOR brightmagenta\r\n    {\r\n    ^(.*)$\r\n    }' > ct.conf\r\n    echo bar > foo\r\n    colortail -k ct.conf foo |hexdump -C\r\n    00000000  3d 3d 3e 20 66 6f 6f 20  3c 3d 3d 0a 1b 5b 31 3b  |==> foo <==..[1;|\r\n    00000010  33 35 6d 66 1b 5b 31 3b  33 35 6d 6f 1b 5b 31 3b  |35mb.[1;35ma.[1;|\r\n    00000020  33 35 6d 6f 1b 5b 31 3b  33 35 6d 0a 1b 5b 30 3b  |35mr.[1;35m..[0;|\r\n    00000030  30 6d 00                                          |0m.|\r\n    00000033\r\n\r\n    colortail -k ct.conf foo |grep foo\r\n    Binary file (standard input) matches\r\n    echo $?\r\n    0\r\n    colortail -k ct.conf foo |grep bar\r\n    echo $?\r\n    1"}}