{"action":"created","issue":{"url":"https://api.github.com/repos/selectel/pyte/issues/50","repository_url":"https://api.github.com/repos/selectel/pyte","labels_url":"https://api.github.com/repos/selectel/pyte/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/selectel/pyte/issues/50/comments","events_url":"https://api.github.com/repos/selectel/pyte/issues/50/events","html_url":"https://github.com/selectel/pyte/issues/50","id":159561853,"number":50,"title":"Foreground/background color logic?","user":{"login":"lengstrom","id":760865,"avatar_url":"https://avatars.githubusercontent.com/u/760865?v=3","gravatar_id":"","url":"https://api.github.com/users/lengstrom","html_url":"https://github.com/lengstrom","followers_url":"https://api.github.com/users/lengstrom/followers","following_url":"https://api.github.com/users/lengstrom/following{/other_user}","gists_url":"https://api.github.com/users/lengstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/lengstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lengstrom/subscriptions","organizations_url":"https://api.github.com/users/lengstrom/orgs","repos_url":"https://api.github.com/users/lengstrom/repos","events_url":"https://api.github.com/users/lengstrom/events{/privacy}","received_events_url":"https://api.github.com/users/lengstrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-10T05:32:44Z","updated_at":"2016-06-11T18:09:11Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having some troubles getting the colors in my pyte screen to match those in my true tty. \r\n\r\nFor example, running vim in my tty (sorry if I'm abusing vocabulary), we have:\r\n<img width=\"1063\" alt=\"screen shot 2016-06-09 at 10 22 34 pm\" src=\"https://cloud.githubusercontent.com/assets/760865/15954927/72a6972a-2e91-11e6-8c58-c2ee9be57e9b.png\">\r\n\r\nThen in pyte, I get this (visualizing using the urwid library):\r\n\r\n<img width=\"1063\" alt=\"screen shot 2016-06-09 at 10 22 46 pm\" src=\"https://cloud.githubusercontent.com/assets/760865/15954929/76de3b36-2e91-11e6-9e21-9db833b3e773.png\">\r\n\r\nAt the character directly right to the cursor position in the pyte `Screen`, `{\"x\": 8, \"y\":0)`, I get the following `_char` instance:\r\n```\r\n(pdb) buff[0][9]\r\n_Char(data=u'r', fg=u'default', bg=u'default', bold=False, italics=False, underscore=False, strikethrough=False, reverse=False)\r\n```\r\n\r\nWhich is clearly not describing the same character right of the cursor in the Vim instance (which should have at least a red foreground color). What am I doing wrong here? Do I have to enable colors, or set certain environmental variables or flags in my pyte screen pty? \r\n"},"comment":{"url":"https://api.github.com/repos/selectel/pyte/issues/comments/225381083","html_url":"https://github.com/selectel/pyte/issues/50#issuecomment-225381083","issue_url":"https://api.github.com/repos/selectel/pyte/issues/50","id":225381083,"user":{"login":"lengstrom","id":760865,"avatar_url":"https://avatars.githubusercontent.com/u/760865?v=3","gravatar_id":"","url":"https://api.github.com/users/lengstrom","html_url":"https://github.com/lengstrom","followers_url":"https://api.github.com/users/lengstrom/followers","following_url":"https://api.github.com/users/lengstrom/following{/other_user}","gists_url":"https://api.github.com/users/lengstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/lengstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lengstrom/subscriptions","organizations_url":"https://api.github.com/users/lengstrom/orgs","repos_url":"https://api.github.com/users/lengstrom/repos","events_url":"https://api.github.com/users/lengstrom/events{/privacy}","received_events_url":"https://api.github.com/users/lengstrom/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T18:09:11Z","updated_at":"2016-06-11T18:09:11Z","body":"@jonathanslenders `$TERM == \"xterm\"` in my pty (and in my tty). I'm actually using the `BetterStream` and `BetterScreen` classes in my project already :) - I've looked at pymux (along with prompt-toolkit and wuub/SublimePTY) a lot for my work. What are the methods of specifying the color to 256?\r\n\r\nUrwid does support ANSI and 256."}}
{"actor":{"display_login":"lengstrom"}}