{"action":"created","issue":{"url":"https://api.github.com/repos/dbcli/mycli/issues/220","labels_url":"https://api.github.com/repos/dbcli/mycli/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/dbcli/mycli/issues/220/comments","events_url":"https://api.github.com/repos/dbcli/mycli/issues/220/events","html_url":"https://github.com/dbcli/mycli/issues/220","id":128078070,"number":220,"title":"multiline prompt has insertion point at end of first line","user":{"login":"michaelstack","id":7358493,"avatar_url":"https://avatars.githubusercontent.com/u/7358493?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelstack","html_url":"https://github.com/michaelstack","followers_url":"https://api.github.com/users/michaelstack/followers","following_url":"https://api.github.com/users/michaelstack/following{/other_user}","gists_url":"https://api.github.com/users/michaelstack/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelstack/subscriptions","organizations_url":"https://api.github.com/users/michaelstack/orgs","repos_url":"https://api.github.com/users/michaelstack/repos","events_url":"https://api.github.com/users/michaelstack/events{/privacy}","received_events_url":"https://api.github.com/users/michaelstack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-22T03:53:08Z","updated_at":"2016-01-23T02:55:22Z","closed_at":null,"body":"When I include newlines in my prompt, the resultant prompt looks right, but the insertion point is at the end of the first line.\r\n\r\nFor example, if I specify my prompt in the config file thus:\r\n```\r\nprompt = \"firstline\\nsecondline\\n> \"\r\n```\r\n\r\nThe resultant prompt is:\r\n```\r\nfirstline\r\nsecondline\r\n>\r\n```\r\n\r\nIt looks ok till I start typing. My text inserts at the end of \"firstline\". I would expect it to insert at the end of the third line (\"> \").\r\n"},"comment":{"url":"https://api.github.com/repos/dbcli/mycli/issues/comments/174114132","html_url":"https://github.com/dbcli/mycli/issues/220#issuecomment-174114132","issue_url":"https://api.github.com/repos/dbcli/mycli/issues/220","id":174114132,"user":{"login":"mdsrosa","id":1862239,"avatar_url":"https://avatars.githubusercontent.com/u/1862239?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsrosa","html_url":"https://github.com/mdsrosa","followers_url":"https://api.github.com/users/mdsrosa/followers","following_url":"https://api.github.com/users/mdsrosa/following{/other_user}","gists_url":"https://api.github.com/users/mdsrosa/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsrosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsrosa/subscriptions","organizations_url":"https://api.github.com/users/mdsrosa/orgs","repos_url":"https://api.github.com/users/mdsrosa/repos","events_url":"https://api.github.com/users/mdsrosa/events{/privacy}","received_events_url":"https://api.github.com/users/mdsrosa/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T02:55:22Z","updated_at":"2016-01-23T02:55:22Z","body":"@michaelstack Well observed. Thank you for reporting this. I'll take a look and try to see what can be done to address that. But I'm not sure that this should be the default behavior. Have you tried on mysql standard client?"}}