{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/1997","labels_url":"https://api.github.com/repos/neovim/neovim/issues/1997/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/1997/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/1997/events","html_url":"https://github.com/neovim/neovim/pull/1997","id":57852016,"number":1997,"title":"[WIP] Remove term modules.","user":{"login":"tarruda","id":842846,"avatar_url":"https://avatars.githubusercontent.com/u/842846?v=3","gravatar_id":"","url":"https://api.github.com/users/tarruda","html_url":"https://github.com/tarruda","followers_url":"https://api.github.com/users/tarruda/followers","following_url":"https://api.github.com/users/tarruda/following{/other_user}","gists_url":"https://api.github.com/users/tarruda/gists{/gist_id}","starred_url":"https://api.github.com/users/tarruda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarruda/subscriptions","organizations_url":"https://api.github.com/users/tarruda/orgs","repos_url":"https://api.github.com/users/tarruda/repos","events_url":"https://api.github.com/users/tarruda/events{/privacy}","received_events_url":"https://api.github.com/users/tarruda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/WIP","name":"WIP","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-16T21:15:51Z","updated_at":"2015-02-17T21:09:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/1997","html_url":"https://github.com/neovim/neovim/pull/1997","diff_url":"https://github.com/neovim/neovim/pull/1997.diff","patch_url":"https://github.com/neovim/neovim/pull/1997.patch"},"body":"Continuing the work of #1820"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/74753840","html_url":"https://github.com/neovim/neovim/pull/1997#issuecomment-74753840","issue_url":"https://api.github.com/repos/neovim/neovim/issues/1997","id":74753840,"user":{"login":"tarruda","id":842846,"avatar_url":"https://avatars.githubusercontent.com/u/842846?v=3","gravatar_id":"","url":"https://api.github.com/users/tarruda","html_url":"https://github.com/tarruda","followers_url":"https://api.github.com/users/tarruda/followers","following_url":"https://api.github.com/users/tarruda/following{/other_user}","gists_url":"https://api.github.com/users/tarruda/gists{/gist_id}","starred_url":"https://api.github.com/users/tarruda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarruda/subscriptions","organizations_url":"https://api.github.com/users/tarruda/orgs","repos_url":"https://api.github.com/users/tarruda/repos","events_url":"https://api.github.com/users/tarruda/events{/privacy}","received_events_url":"https://api.github.com/users/tarruda/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T21:09:57Z","updated_at":"2015-02-17T21:09:57Z","body":"> @tarruda Would it make sense to implement a way for GUIs to hook into the retrieval of &term and return an appropriate value, e.g. $TERM for the TUI, pynvim for the Python GUI, ...? Or just return $TERM by default instead of nvim (and maybe the value that gvim uses if $TERM is empty)?\r\n\r\nThe value of `&term` was previously populated from `$TERM` value, and for the most common case which is one UI running in the same process, inspecting `$TERM` instead of  `&term` will work as expected.\r\n\r\nAs for hooking into UI to provide the value, its not possible because there can be multiple UIs attached, some which are not even terminals. What value to return in this case?\r\n\r\nAnother problem is `&t_Co`. Right now it is set to a value of 256 colors since thats the most common case, and it can be overriden by the user. But it won't account for the case where two terminals are attached, and one of them don't support 256 colors.\r\n\r\nOne solution that would work for most cases is to let new tui module set `&term` and `&t_Co` on startup."}}