{"action":"created","issue":{"url":"https://api.github.com/repos/aziz/SublimeANSI/issues/20","repository_url":"https://api.github.com/repos/aziz/SublimeANSI","labels_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/20/comments","events_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/20/events","html_url":"https://github.com/aziz/SublimeANSI/issues/20","id":164265441,"number":20,"title":"Unable to configure properly SublimeANSI for 'tput reset' output","user":{"login":"maxiimou","id":6260699,"avatar_url":"https://avatars.githubusercontent.com/u/6260699?v=3","gravatar_id":"","url":"https://api.github.com/users/maxiimou","html_url":"https://github.com/maxiimou","followers_url":"https://api.github.com/users/maxiimou/followers","following_url":"https://api.github.com/users/maxiimou/following{/other_user}","gists_url":"https://api.github.com/users/maxiimou/gists{/gist_id}","starred_url":"https://api.github.com/users/maxiimou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxiimou/subscriptions","organizations_url":"https://api.github.com/users/maxiimou/orgs","repos_url":"https://api.github.com/users/maxiimou/repos","events_url":"https://api.github.com/users/maxiimou/events{/privacy}","received_events_url":"https://api.github.com/users/maxiimou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-07T09:20:38Z","updated_at":"2016-07-07T14:30:40Z","closed_at":null,"body":"Hello !\r\nOn my machine ``tput reset`` ouputs the string ``\\033(B\\033[m``.\r\n\r\nI've been trying to change the configuration in the ansi.sublime-settings so that the ANSI_FG white scope match it but it doesn't seems to be working... here what I tryed:\r\n\r\n```\r\n      {\"scope\": \"white\", \"code\": \"(\\\\x1b[(]B)?\\\\x1b\\\\[(0;)?(37)?m\", \"color\": \"#c7c7c7\"},\r\n      {\"scope\": \"white\", \"code\": \"(\\\\x1b\\\\(B)?\\\\x1b\\\\[(0;)?(37)?m\", \"color\": \"#c7c7c7\"},\r\n```\r\n\r\nI pre-pened the original string (which should match the ``\\033[m``) and added ``(\\\\x1b[(]B)?`` or ``(\\\\x1b\\\\(B)?`` to detect the leading part.\r\n\r\nThis technique is no effective, do you have any idea ?\r\nThanks a lot!"},"comment":{"url":"https://api.github.com/repos/aziz/SublimeANSI/issues/comments/231095131","html_url":"https://github.com/aziz/SublimeANSI/issues/20#issuecomment-231095131","issue_url":"https://api.github.com/repos/aziz/SublimeANSI/issues/20","id":231095131,"user":{"login":"jakkubu","id":1984569,"avatar_url":"https://avatars.githubusercontent.com/u/1984569?v=3","gravatar_id":"","url":"https://api.github.com/users/jakkubu","html_url":"https://github.com/jakkubu","followers_url":"https://api.github.com/users/jakkubu/followers","following_url":"https://api.github.com/users/jakkubu/following{/other_user}","gists_url":"https://api.github.com/users/jakkubu/gists{/gist_id}","starred_url":"https://api.github.com/users/jakkubu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakkubu/subscriptions","organizations_url":"https://api.github.com/users/jakkubu/orgs","repos_url":"https://api.github.com/users/jakkubu/repos","events_url":"https://api.github.com/users/jakkubu/events{/privacy}","received_events_url":"https://api.github.com/users/jakkubu/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T14:30:40Z","updated_at":"2016-07-07T14:30:40Z","body":"Currently this plug-in does not support codes for VT100 terminal. It deletes only the commands from [this](http://ascii-table.com/ansi-escape-sequences.php) list.\r\n\r\nI plan to rewrite some part of this plugin in near future (hope to find some time). I think all regexps should be set up in ANSI settings, so everybody would be able to add any other ANSI character without changing the code.\r\n\r\nThe lines you edited could be removed since they are probably not necessary (need to test it). Your edits works, because it changes the ANSI VT100 code to the one that will be deleted later.\r\n\r\nAdding the codes for deletion should be done in [line 164](https://github.com/aziz/SublimeANSI/blob/3e49dc6531177e0fcdf27c9e5dd225d8d86865ed/ansi.py#L164) (for `on_finish` trigger) and in [line 325](https://github.com/aziz/SublimeANSI/blob/3e49dc6531177e0fcdf27c9e5dd225d8d86865ed/ansi.py#L325) (`on_data` trigger)."}}
{"actor":{"display_login":"jakkubu"}}