{"action":"created","issue":{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/261","labels_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/261/comments","events_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/261/events","html_url":"https://github.com/SBoudrias/Inquirer.js/issues/261","id":97345582,"number":261,"title":"Long titled choice with the list prompt makes it jump up on every scroll","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-26T20:03:01Z","updated_at":"2015-07-27T10:38:32Z","closed_at":null,"body":"## Problem\r\n\r\nIf you use a long title in one of the choices in the `list` prompt it makes the list jump one lin up for every scroll and creates a lot of artifacts and ghost lines.\r\n\r\n<img width=\"1430\" alt=\"screen shot 2015-07-26 at 22 01 32\" src=\"https://cloud.githubusercontent.com/assets/170270/8895657/e8ea55e4-33e1-11e5-8e4c-0ce251246f99.png\">\r\n\r\n\r\n## Testcase\r\n\r\n```js\r\n'use strict';\r\nvar inquirer = require('inquirer');\r\n\r\ninquirer.prompt([\r\n  {\r\n    type: 'list',\r\n    name: 'foo',\r\n    message: 'foo',\r\n    choices: [\r\n      'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.',\r\n      'Make a reservation'\r\n    ]\r\n  }\r\n]);\r\n```\r\n\r\n-\r\n\r\nCan also be reproduced with `yo` master: `yo` => `Install a generator` => `angular` => [Enter]"},"comment":{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/comments/125160987","html_url":"https://github.com/SBoudrias/Inquirer.js/issues/261#issuecomment-125160987","issue_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/261","id":125160987,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T10:38:32Z","updated_at":"2015-07-27T10:38:32Z","body":"Oh yeah, I should have been more specific. Terminal.app, Node 0.12.7, Inquirer 0.9.0.\r\n\r\n> My concern here is that if we start cutting the choice text to fit the screen scroll state, then we might end up with more edge case.\r\n\r\nI might be misunderstanding this, but I don't want Inquirer to truncate the question."}}