{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3060","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3060/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3060/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3060/events","html_url":"https://github.com/fish-shell/fish-shell/issues/3060","id":156474024,"number":3060,"title":"Update ncurses when TERM is assigned.","user":{"login":"layus","id":632767,"avatar_url":"https://avatars.githubusercontent.com/u/632767?v=3","gravatar_id":"","url":"https://api.github.com/users/layus","html_url":"https://github.com/layus","followers_url":"https://api.github.com/users/layus/followers","following_url":"https://api.github.com/users/layus/following{/other_user}","gists_url":"https://api.github.com/users/layus/gists{/gist_id}","starred_url":"https://api.github.com/users/layus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layus/subscriptions","organizations_url":"https://api.github.com/users/layus/orgs","repos_url":"https://api.github.com/users/layus/repos","events_url":"https://api.github.com/users/layus/events{/privacy}","received_events_url":"https://api.github.com/users/layus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-24T10:32:26Z","updated_at":"2016-05-24T11:15:04Z","closed_at":"2016-05-24T11:15:04Z","body":"<!--\r\nThanks for helping to make fish better!\r\n\r\nIf you are asking for help with fish, or you've found a bug:\r\n - Make sure it's not a known or solved issue, by searching https://github.com/fish-shell/fish-shell/issues\r\n - Fill in the following information carefully:\r\n\r\n-->\r\n\r\nFish does not reload/reconfigure the underlying ncurses when TERM is assigned like other shells do (bash, zsh, tcsh). It is annoying because TERMINFO may be customized by profile scripts for custom user environments. Fish needs a way to detect changes to TERM* variables and update itself.\r\n\r\n### Reproduction Steps:\r\n\r\nTrick fish into a wrong TERM, then update TERM from within Fish.\r\n\r\nIn my use-case, terminfo is located in ~, and therefore not available at fish startup (by ssh).\r\n\r\n### Expected behavior:\r\n\r\nFish should reconfigure curses when the exported terminal is changed, and optionally when other TERMINFO* variables are changed.\r\n\r\n### Observed behavior:\r\n\r\n...\r\n\r\n### Additional information:\r\n\r\n---\r\nFish version: 2.2.0\r\n\r\nOperating system: NixOS (linux)\r\n\r\nTerminal or terminal emulator: rxvt-unicode-256color\r\n"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/221238518","html_url":"https://github.com/fish-shell/fish-shell/issues/3060#issuecomment-221238518","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3060","id":221238518,"user":{"login":"layus","id":632767,"avatar_url":"https://avatars.githubusercontent.com/u/632767?v=3","gravatar_id":"","url":"https://api.github.com/users/layus","html_url":"https://github.com/layus","followers_url":"https://api.github.com/users/layus/followers","following_url":"https://api.github.com/users/layus/following{/other_user}","gists_url":"https://api.github.com/users/layus/gists{/gist_id}","starred_url":"https://api.github.com/users/layus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layus/subscriptions","organizations_url":"https://api.github.com/users/layus/orgs","repos_url":"https://api.github.com/users/layus/repos","events_url":"https://api.github.com/users/layus/events{/privacy}","received_events_url":"https://api.github.com/users/layus/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T11:15:04Z","updated_at":"2016-05-24T11:15:04Z","body":"That should be enough, if setting TERMINFO and TERMINFO_DIRS in config.fish is also taken into account. I will try with version 2.3.0, and open a new issue if need be.\r\n\r\nThanks for the fast and accurate reply!"}}
{"actor":{"display_login":"layus"}}