{"action":"created","issue":{"url":"https://api.github.com/repos/sourcelair/xterm.js/issues/950","repository_url":"https://api.github.com/repos/sourcelair/xterm.js","labels_url":"https://api.github.com/repos/sourcelair/xterm.js/issues/950/labels{/name}","comments_url":"https://api.github.com/repos/sourcelair/xterm.js/issues/950/comments","events_url":"https://api.github.com/repos/sourcelair/xterm.js/issues/950/events","html_url":"https://github.com/sourcelair/xterm.js/issues/950","id":255746653,"number":950,"title":"Can't clear the terminal programmatically","user":{"login":"fabiospampinato","id":1812093,"avatar_url":"https://avatars1.githubusercontent.com/u/1812093?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiospampinato","html_url":"https://github.com/fabiospampinato","followers_url":"https://api.github.com/users/fabiospampinato/followers","following_url":"https://api.github.com/users/fabiospampinato/following{/other_user}","gists_url":"https://api.github.com/users/fabiospampinato/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiospampinato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiospampinato/subscriptions","organizations_url":"https://api.github.com/users/fabiospampinato/orgs","repos_url":"https://api.github.com/users/fabiospampinato/repos","events_url":"https://api.github.com/users/fabiospampinato/events{/privacy}","received_events_url":"https://api.github.com/users/fabiospampinato/received_events","type":"User","site_admin":false},"labels":[{"id":87998140,"url":"https://api.github.com/repos/sourcelair/xterm.js/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-06T21:22:31Z","updated_at":"2017-09-06T22:56:35Z","closed_at":"2017-09-06T22:00:59Z","author_association":"NONE","body":"Running `node -e \"process.stdout.write ( '\\u001Bc' );\"` should clear the terminal, but this is what I get if I run it in xterm:\r\n\r\n<img width=\"136\" alt=\"screen shot 2017-09-06 at 23 16 44\" src=\"https://user-images.githubusercontent.com/1812093/30135021-97078290-9359-11e7-9a0a-ce5c38a361c4.png\">\r\n\r\nIf I try to clear it with a `node -e \"process.stdout.write ( '\\033[2J\\033[0f' );\"` the whole thing becomes black.\r\n\r\nIs there a way it can be cleared properly?\r\n"},"comment":{"url":"https://api.github.com/repos/sourcelair/xterm.js/issues/comments/327634323","html_url":"https://github.com/sourcelair/xterm.js/issues/950#issuecomment-327634323","issue_url":"https://api.github.com/repos/sourcelair/xterm.js/issues/950","id":327634323,"user":{"login":"fabiospampinato","id":1812093,"avatar_url":"https://avatars1.githubusercontent.com/u/1812093?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiospampinato","html_url":"https://github.com/fabiospampinato","followers_url":"https://api.github.com/users/fabiospampinato/followers","following_url":"https://api.github.com/users/fabiospampinato/following{/other_user}","gists_url":"https://api.github.com/users/fabiospampinato/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiospampinato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiospampinato/subscriptions","organizations_url":"https://api.github.com/users/fabiospampinato/orgs","repos_url":"https://api.github.com/users/fabiospampinato/repos","events_url":"https://api.github.com/users/fabiospampinato/events{/privacy}","received_events_url":"https://api.github.com/users/fabiospampinato/received_events","type":"User","site_admin":false},"created_at":"2017-09-06T22:56:35Z","updated_at":"2017-09-06T22:56:35Z","author_association":"NONE","body":"What if I don't have access to the xterm instance?\r\n\r\nI basically want to clear the terminal when my CLI app starts, how am I supposed to do that if it gets launched from xterm?"}}
{"actor":{"display_login":"fabiospampinato"}}