{"action":"created","issue":{"url":"https://api.github.com/repos/ahmetb/kubectx/issues/57","repository_url":"https://api.github.com/repos/ahmetb/kubectx","labels_url":"https://api.github.com/repos/ahmetb/kubectx/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/ahmetb/kubectx/issues/57/comments","events_url":"https://api.github.com/repos/ahmetb/kubectx/issues/57/events","html_url":"https://github.com/ahmetb/kubectx/issues/57","id":335024547,"node_id":"MDU6SXNzdWUzMzUwMjQ1NDc=","number":57,"title":"TERM=vt100 causing empty output","user":{"login":"cdenneen","id":720097,"node_id":"MDQ6VXNlcjcyMDA5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/720097?v=4","gravatar_id":"","url":"https://api.github.com/users/cdenneen","html_url":"https://github.com/cdenneen","followers_url":"https://api.github.com/users/cdenneen/followers","following_url":"https://api.github.com/users/cdenneen/following{/other_user}","gists_url":"https://api.github.com/users/cdenneen/gists{/gist_id}","starred_url":"https://api.github.com/users/cdenneen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdenneen/subscriptions","organizations_url":"https://api.github.com/users/cdenneen/orgs","repos_url":"https://api.github.com/users/cdenneen/repos","events_url":"https://api.github.com/users/cdenneen/events{/privacy}","received_events_url":"https://api.github.com/users/cdenneen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-22T21:28:50Z","updated_at":"2018-08-22T16:51:27Z","closed_at":"2018-08-22T16:50:35Z","author_association":"NONE","body":"Currently if using something like no color or vt100 terminal you won't see what the current context is... if the terminal supports color it will be bold and a color.\r\n\r\n1. For non-color terminals add * to current context?\r\n\r\n~ » export TERM=vt100\r\n~ » kubectx\r\naws\r\ndocker-for-desktop\r\nk8s\r\n\r\n~ » export TERM=xterm\r\n~ » kubectx\r\naws\r\ndocker-for-desktop\r\n**k8s**\r\n\r\n2. Add option to only print current context (theoretically this and similar option for kubens can be used to add to PS1 prompt)\r\n\r\nkubectx --\r\nk8s"},"comment":{"url":"https://api.github.com/repos/ahmetb/kubectx/issues/comments/415101242","html_url":"https://github.com/ahmetb/kubectx/issues/57#issuecomment-415101242","issue_url":"https://api.github.com/repos/ahmetb/kubectx/issues/57","id":415101242,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTEwMTI0Mg==","user":{"login":"ahmetb","id":159209,"node_id":"MDQ6VXNlcjE1OTIwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/159209?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmetb","html_url":"https://github.com/ahmetb","followers_url":"https://api.github.com/users/ahmetb/followers","following_url":"https://api.github.com/users/ahmetb/following{/other_user}","gists_url":"https://api.github.com/users/ahmetb/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetb/subscriptions","organizations_url":"https://api.github.com/users/ahmetb/orgs","repos_url":"https://api.github.com/users/ahmetb/repos","events_url":"https://api.github.com/users/ahmetb/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetb/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T16:51:27Z","updated_at":"2018-08-22T16:51:27Z","author_association":"OWNER","body":"I just fixed this by ignoring tput failure. vt100 does not have colors, so this will just print black and white output.\r\n\r\nI'm not convinced people still use vt100 :)"}}
{"actor":{"display_login":"ahmetb"}}