{"action":"created","issue":{"url":"https://api.github.com/repos/jwilm/alacritty/issues/1500","repository_url":"https://api.github.com/repos/jwilm/alacritty","labels_url":"https://api.github.com/repos/jwilm/alacritty/issues/1500/labels{/name}","comments_url":"https://api.github.com/repos/jwilm/alacritty/issues/1500/comments","events_url":"https://api.github.com/repos/jwilm/alacritty/issues/1500/events","html_url":"https://github.com/jwilm/alacritty/pull/1500","id":348433417,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2Nzg0OTc0","number":1500,"title":"[WIP] Implement `ansi::ClearMode::Saved`","user":{"login":"nixpulvis","id":715947,"node_id":"MDQ6VXNlcjcxNTk0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/715947?v=4","gravatar_id":"","url":"https://api.github.com/users/nixpulvis","html_url":"https://github.com/nixpulvis","followers_url":"https://api.github.com/users/nixpulvis/followers","following_url":"https://api.github.com/users/nixpulvis/following{/other_user}","gists_url":"https://api.github.com/users/nixpulvis/gists{/gist_id}","starred_url":"https://api.github.com/users/nixpulvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixpulvis/subscriptions","organizations_url":"https://api.github.com/users/nixpulvis/orgs","repos_url":"https://api.github.com/users/nixpulvis/repos","events_url":"https://api.github.com/users/nixpulvis/events{/privacy}","received_events_url":"https://api.github.com/users/nixpulvis/received_events","type":"User","site_admin":false},"labels":[{"id":861214174,"node_id":"MDU6TGFiZWw4NjEyMTQxNzQ=","url":"https://api.github.com/repos/jwilm/alacritty/labels/S%20-%20scrollback","name":"S - scrollback","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-07T18:19:10Z","updated_at":"2018-08-17T01:11:12Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/jwilm/alacritty/pulls/1500","html_url":"https://github.com/jwilm/alacritty/pull/1500","diff_url":"https://github.com/jwilm/alacritty/pull/1500.diff","patch_url":"https://github.com/jwilm/alacritty/pull/1500.patch"},"body":"The ANSI escape `CSI [n] J` where `n` is 0-3 clears various parts of the terminal screen. This implements `n = 3` to clear the \"saved\" buffer, which should just clear the scrollback history, and leave the contents displayed on the terminal alone.\r\n\r\nThis is part of the work done to fix #1480. My plan was originally to create a new action for this (you can see some of the code done for that here), but as I discovered the ANSI control for this I am now wondering if it should be a keybinding that somehow triggers a sequence of ANSI control codes. This seems to be something that you cannot currently do however. @chrisduerr linked me a relevant issue, but I can't seem to find it right now.\r\n\r\n- [x] Decide on new action vs ANSI codes for keybinding\r\n- [ ] Cleanup dead code\r\n- [ ] Tests?"},"comment":{"url":"https://api.github.com/repos/jwilm/alacritty/issues/comments/413728504","html_url":"https://github.com/jwilm/alacritty/pull/1500#issuecomment-413728504","issue_url":"https://api.github.com/repos/jwilm/alacritty/issues/1500","id":413728504,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzcyODUwNA==","user":{"login":"jwilm","id":4285147,"node_id":"MDQ6VXNlcjQyODUxNDc=","avatar_url":"https://avatars2.githubusercontent.com/u/4285147?v=4","gravatar_id":"","url":"https://api.github.com/users/jwilm","html_url":"https://github.com/jwilm","followers_url":"https://api.github.com/users/jwilm/followers","following_url":"https://api.github.com/users/jwilm/following{/other_user}","gists_url":"https://api.github.com/users/jwilm/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilm/subscriptions","organizations_url":"https://api.github.com/users/jwilm/orgs","repos_url":"https://api.github.com/users/jwilm/repos","events_url":"https://api.github.com/users/jwilm/events{/privacy}","received_events_url":"https://api.github.com/users/jwilm/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T01:11:12Z","updated_at":"2018-08-17T01:11:12Z","author_association":"OWNER","body":"Well, we can't count on the application to actually be a shell. It's possible that the running app would just barf if you asked it to \"echo\" something.\r\n\r\nFor now, the most reliable path will be adding an additional action while still supporting the sequence."}}
{"actor":{"display_login":"jwilm"}}