{"action":"created","comment":{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments/52262458","id":52262458,"diff_hunk":"@@ -108,10 +97,21 @@ ScreenManager.prototype.done = function () {\n   this.rl.output.write('\\n');\n };\n \n-function breakLines(lines) {\n+ScreenManager.prototype.normalizedCliWidth = function () {\n+  var width = cliWidth({\n+    defaultWidth: 80,\n+    output: this.rl.output\n+  });\n+  if (process.platform === 'win32') {\n+    return width - 1;\n+  }\n+  return width;\n+};\n+\n+ScreenManager.prototype.breakLines = function (lines) {","path":"lib/utils/screen-manager.js","position":68,"original_position":68,"commit_id":"edc7e63d0b66ba5f8a8c96b2c84739b599225fdb","original_commit_id":"edc7e63d0b66ba5f8a8c96b2c84739b599225fdb","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"body":"How about we pass the width as a parameter instead of making those class method?","created_at":"2016-02-09T02:59:02Z","updated_at":"2016-02-09T02:59:02Z","html_url":"https://github.com/SBoudrias/Inquirer.js/pull/334#discussion_r52262458","pull_request_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334","_links":{"self":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments/52262458"},"html":{"href":"https://github.com/SBoudrias/Inquirer.js/pull/334#discussion_r52262458"},"pull_request":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334"}}},"pull_request":{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334","id":58697803,"html_url":"https://github.com/SBoudrias/Inquirer.js/pull/334","diff_url":"https://github.com/SBoudrias/Inquirer.js/pull/334.diff","patch_url":"https://github.com/SBoudrias/Inquirer.js/pull/334.patch","issue_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/334","number":334,"state":"open","locked":false,"title":"Updates cli-width dependency","user":{"login":"ruyadorno","id":220900,"avatar_url":"https://avatars.githubusercontent.com/u/220900?v=3","gravatar_id":"","url":"https://api.github.com/users/ruyadorno","html_url":"https://github.com/ruyadorno","followers_url":"https://api.github.com/users/ruyadorno/followers","following_url":"https://api.github.com/users/ruyadorno/following{/other_user}","gists_url":"https://api.github.com/users/ruyadorno/gists{/gist_id}","starred_url":"https://api.github.com/users/ruyadorno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruyadorno/subscriptions","organizations_url":"https://api.github.com/users/ruyadorno/orgs","repos_url":"https://api.github.com/users/ruyadorno/repos","events_url":"https://api.github.com/users/ruyadorno/events{/privacy}","received_events_url":"https://api.github.com/users/ruyadorno/received_events","type":"User","site_admin":false},"body":"Greetings my friend @SBoudrias,\r\n\r\n**cli-width** finally got a major release with a nicer API to define `defaultWidth` AND the possibility of configure an option **stdout** as described on #285 \r\n\r\nThis PR updates the dependency to its latest version `v2.0.0` - it's also worth noting that this version also contains a fix to the annoying issue where the default value wouldn't be used, reported and patched on #326\r\n\r\nUnfortunately, I had to do a bit of moving around to be able to get the value of `this.rl.output` - please let me know if that's good enough.\r\n\r\nThanks :zap: ","created_at":"2016-02-09T02:27:01Z","updated_at":"2016-02-09T02:59:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"607bce9856112de1f4f18217340454c163bed509","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334/commits","review_comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334/comments","review_comment_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/334/comments","statuses_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/edc7e63d0b66ba5f8a8c96b2c84739b599225fdb","head":{"label":"ruyadorno:update-cli-width","ref":"update-cli-width","sha":"edc7e63d0b66ba5f8a8c96b2c84739b599225fdb","user":{"login":"ruyadorno","id":220900,"avatar_url":"https://avatars.githubusercontent.com/u/220900?v=3","gravatar_id":"","url":"https://api.github.com/users/ruyadorno","html_url":"https://github.com/ruyadorno","followers_url":"https://api.github.com/users/ruyadorno/followers","following_url":"https://api.github.com/users/ruyadorno/following{/other_user}","gists_url":"https://api.github.com/users/ruyadorno/gists{/gist_id}","starred_url":"https://api.github.com/users/ruyadorno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruyadorno/subscriptions","organizations_url":"https://api.github.com/users/ruyadorno/orgs","repos_url":"https://api.github.com/users/ruyadorno/repos","events_url":"https://api.github.com/users/ruyadorno/events{/privacy}","received_events_url":"https://api.github.com/users/ruyadorno/received_events","type":"User","site_admin":false},"repo":{"id":15152124,"name":"Inquirer.js","full_name":"ruyadorno/Inquirer.js","owner":{"login":"ruyadorno","id":220900,"avatar_url":"https://avatars.githubusercontent.com/u/220900?v=3","gravatar_id":"","url":"https://api.github.com/users/ruyadorno","html_url":"https://github.com/ruyadorno","followers_url":"https://api.github.com/users/ruyadorno/followers","following_url":"https://api.github.com/users/ruyadorno/following{/other_user}","gists_url":"https://api.github.com/users/ruyadorno/gists{/gist_id}","starred_url":"https://api.github.com/users/ruyadorno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruyadorno/subscriptions","organizations_url":"https://api.github.com/users/ruyadorno/orgs","repos_url":"https://api.github.com/users/ruyadorno/repos","events_url":"https://api.github.com/users/ruyadorno/events{/privacy}","received_events_url":"https://api.github.com/users/ruyadorno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruyadorno/Inquirer.js","description":"A collection of common interactive command line user interfaces.","fork":true,"url":"https://api.github.com/repos/ruyadorno/Inquirer.js","forks_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/forks","keys_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/teams","hooks_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/hooks","issue_events_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/issues/events{/number}","events_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/events","assignees_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/assignees{/user}","branches_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/branches{/branch}","tags_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/tags","blobs_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/languages","stargazers_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/stargazers","contributors_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/contributors","subscribers_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/subscribers","subscription_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/subscription","commits_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/contents/{+path}","compare_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/merges","archive_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/downloads","issues_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/issues{/number}","pulls_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/labels{/name}","releases_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/releases{/id}","deployments_url":"https://api.github.com/repos/ruyadorno/Inquirer.js/deployments","created_at":"2013-12-13T01:30:01Z","updated_at":"2014-10-22T23:01:05Z","pushed_at":"2016-02-09T02:18:32Z","git_url":"git://github.com/ruyadorno/Inquirer.js.git","ssh_url":"git@github.com:ruyadorno/Inquirer.js.git","clone_url":"https://github.com/ruyadorno/Inquirer.js.git","svn_url":"https://github.com/ruyadorno/Inquirer.js","homepage":null,"size":536,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"SBoudrias:master","ref":"master","sha":"08030e2795ceea2a26fc801e1e949fd1e769c4e7","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"repo":{"id":10114077,"name":"Inquirer.js","full_name":"SBoudrias/Inquirer.js","owner":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SBoudrias/Inquirer.js","description":"A collection of common interactive command line user interfaces.","fork":false,"url":"https://api.github.com/repos/SBoudrias/Inquirer.js","forks_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/forks","keys_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/teams","hooks_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/hooks","issue_events_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/events{/number}","events_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/events","assignees_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/assignees{/user}","branches_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/branches{/branch}","tags_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/tags","blobs_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/languages","stargazers_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/stargazers","contributors_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/contributors","subscribers_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/subscribers","subscription_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/subscription","commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/contents/{+path}","compare_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/merges","archive_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/downloads","issues_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues{/number}","pulls_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/labels{/name}","releases_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/releases{/id}","deployments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/deployments","created_at":"2013-05-17T01:41:36Z","updated_at":"2016-02-09T02:31:28Z","pushed_at":"2016-02-09T02:27:01Z","git_url":"git://github.com/SBoudrias/Inquirer.js.git","ssh_url":"git@github.com:SBoudrias/Inquirer.js.git","clone_url":"https://github.com/SBoudrias/Inquirer.js.git","svn_url":"https://github.com/SBoudrias/Inquirer.js","homepage":null,"size":852,"stargazers_count":2328,"watchers_count":2328,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":167,"mirror_url":null,"open_issues_count":50,"forks":167,"open_issues":50,"watchers":2328,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334"},"html":{"href":"https://github.com/SBoudrias/Inquirer.js/pull/334"},"issue":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/334"},"comments":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/334/comments"},"review_comments":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334/comments"},"review_comment":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/334/commits"},"statuses":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/edc7e63d0b66ba5f8a8c96b2c84739b599225fdb"}}}}