{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/1361","repository_url":"https://api.github.com/repos/Flexget/Flexget","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/1361/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/1361/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/1361/events","html_url":"https://github.com/Flexget/Flexget/issues/1361","id":172573469,"number":1361,"title":"console output no longer legible on narrow terminals or when piped","user":{"login":"grr","id":690894,"avatar_url":"https://avatars.githubusercontent.com/u/690894?v=3","gravatar_id":"","url":"https://api.github.com/users/grr","html_url":"https://github.com/grr","followers_url":"https://api.github.com/users/grr/followers","following_url":"https://api.github.com/users/grr/following{/other_user}","gists_url":"https://api.github.com/users/grr/gists{/gist_id}","starred_url":"https://api.github.com/users/grr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grr/subscriptions","organizations_url":"https://api.github.com/users/grr/orgs","repos_url":"https://api.github.com/users/grr/repos","events_url":"https://api.github.com/users/grr/events{/privacy}","received_events_url":"https://api.github.com/users/grr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Flexget/Flexget/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/Flexget/Flexget/labels/CLI","name":"CLI","color":"e99695"}],"state":"open","locked":false,"assignee":{"login":"paranoidi","id":504877,"avatar_url":"https://avatars.githubusercontent.com/u/504877?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoidi","html_url":"https://github.com/paranoidi","followers_url":"https://api.github.com/users/paranoidi/followers","following_url":"https://api.github.com/users/paranoidi/following{/other_user}","gists_url":"https://api.github.com/users/paranoidi/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoidi/subscriptions","organizations_url":"https://api.github.com/users/paranoidi/orgs","repos_url":"https://api.github.com/users/paranoidi/repos","events_url":"https://api.github.com/users/paranoidi/events{/privacy}","received_events_url":"https://api.github.com/users/paranoidi/received_events","type":"User","site_admin":false},"assignees":[{"login":"paranoidi","id":504877,"avatar_url":"https://avatars.githubusercontent.com/u/504877?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoidi","html_url":"https://github.com/paranoidi","followers_url":"https://api.github.com/users/paranoidi/followers","following_url":"https://api.github.com/users/paranoidi/following{/other_user}","gists_url":"https://api.github.com/users/paranoidi/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoidi/subscriptions","organizations_url":"https://api.github.com/users/paranoidi/orgs","repos_url":"https://api.github.com/users/paranoidi/repos","events_url":"https://api.github.com/users/paranoidi/events{/privacy}","received_events_url":"https://api.github.com/users/paranoidi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":17,"created_at":"2016-08-22T22:49:50Z","updated_at":"2016-10-19T09:13:57Z","closed_at":null,"body":"### Expected behaviour:\r\n\r\nLong field names should be truncated to fit on the terminal width. This was the previous behavior. Or the wrapping needs fixing. Also, the colorization should be disabled when piping the output (for example through `less`)\r\n\r\n### Actual behaviour:\r\n\r\nTitles or other field names can be very long and cause the line to wrap and then the pretty borders that are on by default wrap oddly making it hard to read the distorted table output. I usually use 80-wide terminals, but even on a 150-wide terminal this happens if the field names are long enough (and they often are). The long field name does get wrapped, but it's very oddly done and doesn't make full use of the terminal width and the table itself wraps when the terminal is <= 113 chars. Here's a screenshot of what happens on a 150-wide terminal when the longest title is 106 characters: http://i.imgur.com/J3mSmEZ.png\r\n\r\nAlso there is an issue when colorized output is piped through less. By default `less` uses displays control characters like ^A, so maybe all colorization should be disabled when piping output. If using `less -r` the output appears ok, but if using `less -R` there are display artifacts indicating that the colorization is using sequences other than the standard ANSI color escape sequences.\r\n\r\n### Steps to reproduce:\r\n\r\nWith a terminal sized to 150-wide, and a downloaded title at 106 characters:\r\n`flexget history`\r\n`flexget history | less`\r\nThe colorization issue should be apparent when using:\r\n`flexget history | less -r`\r\n`flexget history | less -R`\r\n\r\n- Flexget Version: 2.3.4\r\n- Python Version: Python 2.7.12\r\n- Installation method: git\r\n- OS and version: OS X 10.11.6"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/254758403","html_url":"https://github.com/Flexget/Flexget/issues/1361#issuecomment-254758403","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/1361","id":254758403,"user":{"login":"liiight","id":4374581,"avatar_url":"https://avatars.githubusercontent.com/u/4374581?v=3","gravatar_id":"","url":"https://api.github.com/users/liiight","html_url":"https://github.com/liiight","followers_url":"https://api.github.com/users/liiight/followers","following_url":"https://api.github.com/users/liiight/following{/other_user}","gists_url":"https://api.github.com/users/liiight/gists{/gist_id}","starred_url":"https://api.github.com/users/liiight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiight/subscriptions","organizations_url":"https://api.github.com/users/liiight/orgs","repos_url":"https://api.github.com/users/liiight/repos","events_url":"https://api.github.com/users/liiight/events{/privacy}","received_events_url":"https://api.github.com/users/liiight/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T09:13:57Z","updated_at":"2016-10-19T09:13:57Z","body":"Piping will now use `porcelain` by default if table type is not `plain`. Please try this."}}
{"actor":{"display_login":"liiight"}}