{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/otp/issues/686","labels_url":"https://api.github.com/repos/erlang/otp/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/erlang/otp/issues/686/comments","events_url":"https://api.github.com/repos/erlang/otp/issues/686/events","html_url":"https://github.com/erlang/otp/pull/686","id":69427867,"number":686,"title":"Add display(Term) shell command","user":{"login":"essen","id":141739,"avatar_url":"https://avatars.githubusercontent.com/u/141739?v=3","gravatar_id":"","url":"https://api.github.com/users/essen","html_url":"https://github.com/essen","followers_url":"https://api.github.com/users/essen/followers","following_url":"https://api.github.com/users/essen/following{/other_user}","gists_url":"https://api.github.com/users/essen/gists{/gist_id}","starred_url":"https://api.github.com/users/essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/essen/subscriptions","organizations_url":"https://api.github.com/users/essen/orgs","repos_url":"https://api.github.com/users/essen/repos","events_url":"https://api.github.com/users/essen/events{/privacy}","received_events_url":"https://api.github.com/users/essen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-19T14:06:47Z","updated_at":"2015-04-19T21:08:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/erlang/otp/pulls/686","html_url":"https://github.com/erlang/otp/pull/686","diff_url":"https://github.com/erlang/otp/pull/686.diff","patch_url":"https://github.com/erlang/otp/pull/686.patch"},"body":"This is a proposal to add a display(Term) shell command. I do not know if that's the best way to add it, or even the best name, but I believe it is a useful addition and will make all required changes you need to get this in.\r\n\r\nCommit message follows\r\n\r\n-----------------------\r\n\r\nThe erlang:display/1 function is very useful in various\r\nsteps of development and debugging, as it allows printing\r\nterms fully-expanded, something the shell will not do by\r\ndefault.\r\n\r\nAn alias would not only be shorter to use, but it would\r\nalso allow users to know of its existence, and make them\r\nstop using io:format(\"~p~n\", [Term]), which can be much\r\nworse for a production node due to the heavy formatting\r\nto squeeze the output into 80 columns."},"comment":{"url":"https://api.github.com/repos/erlang/otp/issues/comments/94314581","html_url":"https://github.com/erlang/otp/pull/686#issuecomment-94314581","issue_url":"https://api.github.com/repos/erlang/otp/issues/686","id":94314581,"user":{"login":"garazdawi","id":111762,"avatar_url":"https://avatars.githubusercontent.com/u/111762?v=3","gravatar_id":"","url":"https://api.github.com/users/garazdawi","html_url":"https://github.com/garazdawi","followers_url":"https://api.github.com/users/garazdawi/followers","following_url":"https://api.github.com/users/garazdawi/following{/other_user}","gists_url":"https://api.github.com/users/garazdawi/gists{/gist_id}","starred_url":"https://api.github.com/users/garazdawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garazdawi/subscriptions","organizations_url":"https://api.github.com/users/garazdawi/orgs","repos_url":"https://api.github.com/users/garazdawi/repos","events_url":"https://api.github.com/users/garazdawi/events{/privacy}","received_events_url":"https://api.github.com/users/garazdawi/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T21:08:53Z","updated_at":"2015-04-19T21:08:53Z","body":"One of the uses of erlang:display is to be able to print terms before the io system is started, so it doesn't use the io protocol, fd driver or ttsl driver to do things. It prints directly to fd 1 using write.\r\n\r\nI think that in order to get what you want ,and still have remote I/O working, you have to implement something into io_lib that formats the terms you want. Something like io:format(\"~-1p\",[Term]).\r\n\r\nIf having remote I/O working or not is important for this, I don't know..."}}