{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12471","labels_url":"https://api.github.com/repos/docker/docker/issues/12471/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12471/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12471/events","html_url":"https://github.com/docker/docker/pull/12471","id":69087671,"number":12471,"title":"Fix weird terminal output format","user":{"login":"coolljt0725","id":8232360,"avatar_url":"https://avatars.githubusercontent.com/u/8232360?v=3","gravatar_id":"","url":"https://api.github.com/users/coolljt0725","html_url":"https://github.com/coolljt0725","followers_url":"https://api.github.com/users/coolljt0725/followers","following_url":"https://api.github.com/users/coolljt0725/following{/other_user}","gists_url":"https://api.github.com/users/coolljt0725/gists{/gist_id}","starred_url":"https://api.github.com/users/coolljt0725/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolljt0725/subscriptions","organizations_url":"https://api.github.com/users/coolljt0725/orgs","repos_url":"https://api.github.com/users/coolljt0725/repos","events_url":"https://api.github.com/users/coolljt0725/events{/privacy}","received_events_url":"https://api.github.com/users/coolljt0725/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/dco/yes","name":"dco/yes","color":"ededed"},{"url":"https://api.github.com/repos/docker/docker/labels/status/2-needs-code-review","name":"status/2-needs-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-17T07:38:47Z","updated_at":"2015-04-20T23:57:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12471","html_url":"https://github.com/docker/docker/pull/12471","diff_url":"https://github.com/docker/docker/pull/12471.diff","patch_url":"https://github.com/docker/docker/pull/12471.patch"},"body":"Signed-off-by: Lei Jitang <leijitang@huawei.com>\r\nOn the docker cli, if use `-D` to show the debug message, the output message is weird.\r\nThis is an example:\r\n<pre><code>[l00284783@localhost docker]$ docker -D start -ai test\r\n/ # exit\r\nDEBU[0002] [hijack] End of stdout\r\n                                                        DEBU[0002] CmdStart() returned, defer waiting for hijack to finish.</pre></code>\r\nThe expected output shuld be:\r\n<pre><code>DEBU[0002] [hijack] End of stdout\r\nDEBU[0002] CmdStart() returned, defer waiting for hijack to finish.</code></pre>\r\n\r\nThe reason is that in `pkg/term/tc_linux_cgo.go`, the terminal attribute would disable `OPOST`\r\non `cfmakeraw`, it should be on."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/94595784","html_url":"https://github.com/docker/docker/pull/12471#issuecomment-94595784","issue_url":"https://api.github.com/repos/docker/docker/issues/12471","id":94595784,"user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T23:57:23Z","updated_at":"2015-04-20T23:57:23Z","body":"ill check to make sure we can still do ansi art"}}