{"action":"created","issue":{"url":"https://api.github.com/repos/dylanaraps/pywal/issues/262","repository_url":"https://api.github.com/repos/dylanaraps/pywal","labels_url":"https://api.github.com/repos/dylanaraps/pywal/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/dylanaraps/pywal/issues/262/comments","events_url":"https://api.github.com/repos/dylanaraps/pywal/issues/262/events","html_url":"https://github.com/dylanaraps/pywal/issues/262","id":334257497,"node_id":"MDU6SXNzdWUzMzQyNTc0OTc=","number":262,"title":"MacOS iTerm2 improper sequences format","user":{"login":"ConnorChristensen","id":9158517,"node_id":"MDQ6VXNlcjkxNTg1MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/9158517?v=4","gravatar_id":"","url":"https://api.github.com/users/ConnorChristensen","html_url":"https://github.com/ConnorChristensen","followers_url":"https://api.github.com/users/ConnorChristensen/followers","following_url":"https://api.github.com/users/ConnorChristensen/following{/other_user}","gists_url":"https://api.github.com/users/ConnorChristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/ConnorChristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConnorChristensen/subscriptions","organizations_url":"https://api.github.com/users/ConnorChristensen/orgs","repos_url":"https://api.github.com/users/ConnorChristensen/repos","events_url":"https://api.github.com/users/ConnorChristensen/events{/privacy}","received_events_url":"https://api.github.com/users/ConnorChristensen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-20T21:32:35Z","updated_at":"2018-06-20T22:18:32Z","closed_at":null,"author_association":"NONE","body":"### Problem\r\nThe sequences file generated in the cache has some formatting issues that throws a lot of white space and a few random characters on every terminal that I open. My example sequences file looks like this\r\n```\r\n^[]P00f0f0d^[\\^[]P1675A4E^[\\^[]P28A6236^[\\^[]P3917153^[\\^[]P4AB8C6C^[\\^[]P5748390^[\\^[]P6B3B0A9^[\\^[]P7e2e8e8^[\\^[]P89ea2a2^[\\^[]P9675A4E^[\\^[]Pa8A6236^[\\^[]Pb917153^[\\^[]PcAB8C6C^[\\^[]Pd748390^[\\^[]PeB3B0A9^[\\^[]Pfe2e8e8^[\\^[]Pge2e8e8^[\\^[]Ph0f0f0d^[\\^[]Ple2e8e8^[\\^[]Ple2e8e8^[\\^[]Ple2e8e8^[\\^[]Pl0f0f0d^[\\^[]Pe80f0f0d^[\\^[[s^[[1000H^[[8m^[]Ph0f0f0d^[\\^[[u^[]Ple2e8e8^[\\\r\n    ^[]6;1;bg;red;brightness;15^G\r\n    ^[]6;1;bg;green;brightness;15^G\r\n    ^[]6;1;bg;blue;brightness;13^G\r\n    \r\n\r\n```\r\nI found two issues with this sequence:\r\n1. There is trailing white space\r\n1. One of the color sequences near the end of the first line has one too many characters. It can be identified as begging with ^[]Pe8 and then continuing with the RGB value of the first color value in the sequences.\r\n\r\nWhen running `(cat ~/.cache/wal/sequences &)` the final character on the escape value that is too long is printed (in my case **^[]Pe80f0f0d** prints a **d** on the terminal) and then several lines of white space.\r\n\r\n### Fix\r\n1. Remove the extra 8 in **^[]Pe80f0f0d**\r\n1. Remove the extra white space\r\n1. Replace `(cat ~/.cache/wal/sequences &)` with `(cat ~/.cache/wal/sequences | tr -d \"\\n\" &)` to remove the trailing newline character\r\n\r\nThe fixed sequence file that does not print anything to my screen when loading looks like this\r\n```\r\n^[]P00f0f0d^[\\^[]P1675A4E^[\\^[]P28A6236^[\\^[]P3917153^[\\^[]P4AB8C6C^[\\^[]P5748390^[\\^[]P6B3B0A9^[\\^[]P7e2e8e8^[\\^[]P89ea2a2^[\\^[]P9675A4E^[\\^[]Pa8A6236^[\\^[]Pb917153^[\\^[]PcAB8C6C^[\\^[]Pd748390^[\\^[]PeB3B0A9^[\\^[]Pfe2e8e8^[\\^[]Pge2e8e8^[\\^[]Ph0f0f0d^[\\^[]Ple2e8e8^[\\^[]Ple2e8e8^[\\^[]Ple2e8e8^[\\^[]Pl0f0f0d^[\\^[]Pe0f0f0d^[\\^[[s^[[1000H^[[8m^[]Ph0f0f0d^[\\^[[u^[]Ple2e8e8^[\\^[]6;1;bg;red;brightness;15^G^[]6;1;bg;green;brightness;15^G^[]6;1;bg;blue;brightness;13^G\r\n```\r\n\r\n### Environment\r\n**macOS High Sierra**: 10.13.5\r\n**MacBook Pro**: 15-inch, Mid 2012\r\n**iTerm2**: Build 3.1.6"},"comment":{"url":"https://api.github.com/repos/dylanaraps/pywal/issues/comments/398915636","html_url":"https://github.com/dylanaraps/pywal/issues/262#issuecomment-398915636","issue_url":"https://api.github.com/repos/dylanaraps/pywal/issues/262","id":398915636,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODkxNTYzNg==","user":{"login":"dylanaraps","id":6799467,"node_id":"MDQ6VXNlcjY3OTk0Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/6799467?v=4","gravatar_id":"","url":"https://api.github.com/users/dylanaraps","html_url":"https://github.com/dylanaraps","followers_url":"https://api.github.com/users/dylanaraps/followers","following_url":"https://api.github.com/users/dylanaraps/following{/other_user}","gists_url":"https://api.github.com/users/dylanaraps/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanaraps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanaraps/subscriptions","organizations_url":"https://api.github.com/users/dylanaraps/orgs","repos_url":"https://api.github.com/users/dylanaraps/repos","events_url":"https://api.github.com/users/dylanaraps/events{/privacy}","received_events_url":"https://api.github.com/users/dylanaraps/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T22:18:32Z","updated_at":"2018-06-20T22:18:32Z","author_association":"OWNER","body":"Try the latest commit, it should be fixed now."}}
{"actor":{"display_login":"dylanaraps"}}