{"action":"created","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/681","repository_url":"https://api.github.com/repos/tmux/tmux","labels_url":"https://api.github.com/repos/tmux/tmux/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/681/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/681/events","html_url":"https://github.com/tmux/tmux/issues/681","id":193123499,"number":681,"title":"Long, single-line file output issue","user":{"login":"whereswaldon","id":3922125,"avatar_url":"https://avatars.githubusercontent.com/u/3922125?v=3","gravatar_id":"","url":"https://api.github.com/users/whereswaldon","html_url":"https://github.com/whereswaldon","followers_url":"https://api.github.com/users/whereswaldon/followers","following_url":"https://api.github.com/users/whereswaldon/following{/other_user}","gists_url":"https://api.github.com/users/whereswaldon/gists{/gist_id}","starred_url":"https://api.github.com/users/whereswaldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whereswaldon/subscriptions","organizations_url":"https://api.github.com/users/whereswaldon/orgs","repos_url":"https://api.github.com/users/whereswaldon/repos","events_url":"https://api.github.com/users/whereswaldon/events{/privacy}","received_events_url":"https://api.github.com/users/whereswaldon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T14:04:48Z","updated_at":"2016-12-07T18:35:34Z","closed_at":null,"body":"## Platform\r\n\r\nFirst observed on tmux 2.3 on macOS 10.12.1 using Terminal.app with bash 3.2.57(1)-release.\r\nReproduced on master.\r\n\r\n## Problem\r\n\r\nWhen your prompt is at the bottom of your screen and you `cat` a file that is long but has no newlines in it, you will only see a chunk of the end of the file displayed before your prompt returns. If you run another command or press the `Enter` key again, the rest of the file's content will pop into view in the previous `cat file`'s output as though it was there the whole time. This **only** occurs if the prompt is at the bottom of the screen.\r\n\r\nMaybe this is a problem with `cat`? Sorry if I'm barking up the wrong tree.\r\n\r\nHere's the contents of a file that I know works to reproduce, assuming that your terminal is only 80 chars wide:\r\n```\r\n123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890\r\n```\r\nI have also observed other ways of fixing the output include scrolling up and down again, taking a screenshot of the terminal window, and forcing a tmux redraw `Control-b r`.\r\n\r\n## Config\r\n\r\nNo config needed to reproduce.\r\n\r\n## TERM\r\n\r\nUsing Terminal.app\r\nOutside tmux: `xterm-256color`\r\nInside tmux: `screen`\r\n\r\n## Server Log\r\n\r\n[tmux-server-87182.log.txt](https://github.com/tmux/tmux/files/627300/tmux-server-87182.log.txt)\r\n\r\n## Screenshots\r\n\r\nWithin tmux after running `cat`:\r\n<img width=\"818\" alt=\"screen shot 2016-12-02 at 8 44 27 am\" src=\"https://cloud.githubusercontent.com/assets/3922125/20836033/8f8eefae-b86b-11e6-86a7-bf713d15af72.png\">\r\nWithin tmux after hitting `Enter` again:\r\n<img width=\"818\" alt=\"screen shot 2016-12-02 at 8 46 47 am\" src=\"https://cloud.githubusercontent.com/assets/3922125/20836115/e0c6d3aa-b86b-11e6-9059-b54d1cca034a.png\">\r\nExpected behavior (outside of tmux):\r\n<img width=\"818\" alt=\"screen shot 2016-12-02 at 8 47 31 am\" src=\"https://cloud.githubusercontent.com/assets/3922125/20836133/fa01805e-b86b-11e6-88ae-a7c97898f2a3.png\">\r\n\r\n# Notes\r\n\r\n@reSoley is also having this issue, though his system is the same as the [Platform](#Platform) section above."},"comment":{"url":"https://api.github.com/repos/tmux/tmux/issues/comments/265532091","html_url":"https://github.com/tmux/tmux/issues/681#issuecomment-265532091","issue_url":"https://api.github.com/repos/tmux/tmux/issues/681","id":265532091,"user":{"login":"nicm","id":304243,"avatar_url":"https://avatars.githubusercontent.com/u/304243?v=3","gravatar_id":"","url":"https://api.github.com/users/nicm","html_url":"https://github.com/nicm","followers_url":"https://api.github.com/users/nicm/followers","following_url":"https://api.github.com/users/nicm/following{/other_user}","gists_url":"https://api.github.com/users/nicm/gists{/gist_id}","starred_url":"https://api.github.com/users/nicm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicm/subscriptions","organizations_url":"https://api.github.com/users/nicm/orgs","repos_url":"https://api.github.com/users/nicm/repos","events_url":"https://api.github.com/users/nicm/events{/privacy}","received_events_url":"https://api.github.com/users/nicm/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T18:35:34Z","updated_at":"2016-12-07T18:35:34Z","body":"Does this still happen on master as of 5ea143f521726a47fd5092dcc3abf9101af32751?"}}
{"actor":{"display_login":"nicm"}}