{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2924","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2924/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2924/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2924/events","html_url":"https://github.com/fish-shell/fish-shell/issues/2924","id":147195091,"number":2924,"title":"fish_config prompt rendering is wrong","user":{"login":"floam","id":291142,"avatar_url":"https://avatars.githubusercontent.com/u/291142?v=3","gravatar_id":"","url":"https://api.github.com/users/floam","html_url":"https://github.com/floam","followers_url":"https://api.github.com/users/floam/followers","following_url":"https://api.github.com/users/floam/following{/other_user}","gists_url":"https://api.github.com/users/floam/gists{/gist_id}","starred_url":"https://api.github.com/users/floam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floam/subscriptions","organizations_url":"https://api.github.com/users/floam/orgs","repos_url":"https://api.github.com/users/floam/repos","events_url":"https://api.github.com/users/floam/events{/privacy}","received_events_url":"https://api.github.com/users/floam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-10T05:25:32Z","updated_at":"2016-04-10T06:28:51Z","closed_at":null,"body":"Consider the preview for the Terlar theme:\r\n\r\n<img width=\"388\" alt=\"screenshot 2016-04-09 at 10 14 11 pm\" src=\"https://cloud.githubusercontent.com/assets/291142/14408242/e8cf5570-fea0-11e5-9b3c-bd81b083a79d.png\">\r\n\r\nOn my terminal it actually renders like this:\r\n\r\n<img width=\"248\" alt=\"screenshot 2016-04-09 at 10 11 04 pm\" src=\"https://cloud.githubusercontent.com/assets/291142/14408243/f5960d08-fea0-11e5-9a1f-23f669e594ae.png\">\r\n\r\nThere are issues:\r\n 1. For certain glyphs like that lightning bolt, the webapp isn't picking the glyphs we'd like see at the terminal. \r\n 2. There is some bug with the colors likely not changing/ending the way they actually do in a terminal (color of the second line).\r\n 3. All of the git-aware commands only have an indication and preview of their true nature if you happen to execute them in a git repo.\r\n\r\nA PR for 1 is incoming. 2 is caused because that color changes depending on exit status... and for some reason that's always not 0 in the demonstrations I guess.\r\n\r\nAfter looking over how these are rendered, I wonder if fish wouldn't be better off using a Javascript module that is capable of more accurately and fully emulating a terminal. We could show color schemes and the prompt together on the same page by simply feeding something like [tty.js](https://github.com/chjj/tty.js/) actual output."},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/207931347","html_url":"https://github.com/fish-shell/fish-shell/issues/2924#issuecomment-207931347","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2924","id":207931347,"user":{"login":"floam","id":291142,"avatar_url":"https://avatars.githubusercontent.com/u/291142?v=3","gravatar_id":"","url":"https://api.github.com/users/floam","html_url":"https://github.com/floam","followers_url":"https://api.github.com/users/floam/followers","following_url":"https://api.github.com/users/floam/following{/other_user}","gists_url":"https://api.github.com/users/floam/gists{/gist_id}","starred_url":"https://api.github.com/users/floam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floam/subscriptions","organizations_url":"https://api.github.com/users/floam/orgs","repos_url":"https://api.github.com/users/floam/repos","events_url":"https://api.github.com/users/floam/events{/privacy}","received_events_url":"https://api.github.com/users/floam/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T06:28:51Z","updated_at":"2016-04-10T06:28:51Z","body":"> AFAICT, lots of front-end devs love those colorful emoji.\r\n\r\nOK, I did find a few examples online of people using lightning bolts for git status in prompts and in their screenshots they seem to be matching the smaller, uncolored/re-colorable glyph I see on my terminal."}}