{"action":"created","issue":{"url":"https://api.github.com/repos/qterminal/qterminal/issues/100","labels_url":"https://api.github.com/repos/qterminal/qterminal/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/qterminal/qterminal/issues/100/comments","events_url":"https://api.github.com/repos/qterminal/qterminal/issues/100/events","html_url":"https://github.com/qterminal/qterminal/issues/100","id":50100500,"number":100,"title":"Allow setting TERM environment variable","user":{"login":"lukebakken","id":514926,"avatar_url":"https://avatars.githubusercontent.com/u/514926?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebakken","html_url":"https://github.com/lukebakken","followers_url":"https://api.github.com/users/lukebakken/followers","following_url":"https://api.github.com/users/lukebakken/following{/other_user}","gists_url":"https://api.github.com/users/lukebakken/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebakken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebakken/subscriptions","organizations_url":"https://api.github.com/users/lukebakken/orgs","repos_url":"https://api.github.com/users/lukebakken/repos","events_url":"https://api.github.com/users/lukebakken/events{/privacy}","received_events_url":"https://api.github.com/users/lukebakken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-11-25T23:49:40Z","updated_at":"2015-06-12T15:06:00Z","closed_at":null,"body":"https://github.com/qterminal/qterminal/blob/master/src/main.cpp#L105\r\n\r\nIn order to be able to use the \"Solarized Dark\" color scheme in QTerminal and in `vim`, I have to use the following `TERM` value:\r\n\r\n```\r\nxterm-256color\r\n```\r\n\r\nThe default of `xterm` results in incorrect colors:\r\n\r\n![vim-with-xterm-env-value](https://cloud.githubusercontent.com/assets/514926/5193869/a3494a90-74ba-11e4-8211-ab8d227a8e23.png)\r\n\r\nIt would be great to allow a user to set this either via the command line, or via a profile. Right now I'm using the following workaround in my `.bashrc`:\r\n\r\n```bash\r\nppid_cmdline=\"$(< /proc/$PPID/cmdline)\"\r\nif [[ $ppid_cmdline == *qterminal* ]]\r\nthen\r\n  export TERM=xterm-256color\r\nfi\r\n```"},"comment":{"url":"https://api.github.com/repos/qterminal/qterminal/issues/comments/111520299","html_url":"https://github.com/qterminal/qterminal/issues/100#issuecomment-111520299","issue_url":"https://api.github.com/repos/qterminal/qterminal/issues/100","id":111520299,"user":{"login":"jleclanche","id":235410,"avatar_url":"https://avatars.githubusercontent.com/u/235410?v=3","gravatar_id":"","url":"https://api.github.com/users/jleclanche","html_url":"https://github.com/jleclanche","followers_url":"https://api.github.com/users/jleclanche/followers","following_url":"https://api.github.com/users/jleclanche/following{/other_user}","gists_url":"https://api.github.com/users/jleclanche/gists{/gist_id}","starred_url":"https://api.github.com/users/jleclanche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleclanche/subscriptions","organizations_url":"https://api.github.com/users/jleclanche/orgs","repos_url":"https://api.github.com/users/jleclanche/repos","events_url":"https://api.github.com/users/jleclanche/events{/privacy}","received_events_url":"https://api.github.com/users/jleclanche/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T15:06:00Z","updated_at":"2015-06-12T15:06:00Z","body":"Do other terminal emulators allow setting this?"}}