{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/2480","repository_url":"https://api.github.com/repos/sbt/sbt","labels_url":"https://api.github.com/repos/sbt/sbt/issues/2480/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/2480/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/2480/events","html_url":"https://github.com/sbt/sbt/issues/2480","id":136516937,"number":2480,"title":"New line character \"\\n\" is escaped to \"^J\" in the sbt console's prompt in 0.13.10","user":{"login":"hohonuuli","id":282941,"avatar_url":"https://avatars.githubusercontent.com/u/282941?v=3","gravatar_id":"","url":"https://api.github.com/users/hohonuuli","html_url":"https://github.com/hohonuuli","followers_url":"https://api.github.com/users/hohonuuli/followers","following_url":"https://api.github.com/users/hohonuuli/following{/other_user}","gists_url":"https://api.github.com/users/hohonuuli/gists{/gist_id}","starred_url":"https://api.github.com/users/hohonuuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hohonuuli/subscriptions","organizations_url":"https://api.github.com/users/hohonuuli/orgs","repos_url":"https://api.github.com/users/hohonuuli/repos","events_url":"https://api.github.com/users/hohonuuli/events{/privacy}","received_events_url":"https://api.github.com/users/hohonuuli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sbt/sbt/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-25T21:25:14Z","updated_at":"2016-02-25T22:42:04Z","closed_at":null,"body":"(See the guidelines for contributing, linked above)\r\n\r\n## steps\r\nAdd the following to _build.sbt_:\r\n\r\n```\r\n// set the prompt (for this build) to include the project id.\r\nshellPrompt in ThisBuild := { state =>\r\n  val user = System.getProperty(\"user.name\")\r\n   \"\\n\" + user + \"@\" + Project.extract(state).currentRef.project + \"\\nsbt> \"\r\n}\r\n```\r\nIn _project\\build.properties_ set `sbt.version=0.13.10` (or 0.13.11)\r\n\r\nIn a terminal, run `sbt`\r\n\r\n## problem\r\nIn sbt 0.13.10 and 0.13.11, the new line character `\\n` in the prompt is being transformed to [emacs caret notation](http://ergoemacs.org/emacs/emacs_line_ending_char.html) `^J`. The resulting prompt looks like:\r\n\r\n```\r\n^Jbrian@my-cool-project^Jsbt>\r\n```\r\n\r\n## expectation\r\n\r\nIn all prior versions of sbt the prompt appears like so:\r\n\r\n```\r\n\r\nbrian@my-cool-project\r\nsbt>\r\n```\r\n\r\n\r\n## notes\r\n\r\nIf this is a _feature_ some guidance on how to create a prompt with line feeds in it would be much appreciated. My development platform is Mac OS X 10.11.3, java version \"1.8.0_72\". \r\n"},"comment":{"url":"https://api.github.com/repos/sbt/sbt/issues/comments/189016492","html_url":"https://github.com/sbt/sbt/issues/2480#issuecomment-189016492","issue_url":"https://api.github.com/repos/sbt/sbt/issues/2480","id":189016492,"user":{"login":"hohonuuli","id":282941,"avatar_url":"https://avatars.githubusercontent.com/u/282941?v=3","gravatar_id":"","url":"https://api.github.com/users/hohonuuli","html_url":"https://github.com/hohonuuli","followers_url":"https://api.github.com/users/hohonuuli/followers","following_url":"https://api.github.com/users/hohonuuli/following{/other_user}","gists_url":"https://api.github.com/users/hohonuuli/gists{/gist_id}","starred_url":"https://api.github.com/users/hohonuuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hohonuuli/subscriptions","organizations_url":"https://api.github.com/users/hohonuuli/orgs","repos_url":"https://api.github.com/users/hohonuuli/repos","events_url":"https://api.github.com/users/hohonuuli/events{/privacy}","received_events_url":"https://api.github.com/users/hohonuuli/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T22:42:04Z","updated_at":"2016-02-25T22:42:04Z","body":"Thanks for the tip. I tried this first:\r\n\r\n```\r\ndependencyOverrides += \"jline\" % \"jline\" % \"2.11\"\r\n```\r\n\r\nand then tried this instead:\r\n\r\n```\r\nlibraryDependencies += \"jline\" % \"jline\" % \"2.11\" force()\r\n```\r\nI tried that in both `project\\plugins.sbt` and `build.sbt`. But I still get the funky `^J`."}}