steps
Add the following to build.sbt:
// set the prompt (for this build) to include the project id.
shellPrompt in ThisBuild := { state =>
val user = System.getProperty("user.name")
"\n" + user + "@" + Project.extract(state).currentRef.project + "\nsbt> "
}
In project\build.properties set sbt.version=0.13.10 (or 0.13.11)
In a terminal, run sbt
problem
In sbt 0.13.10 and 0.13.11, the new line character \n in the prompt is being transformed to emacs caret notation ^J. The resulting prompt looks like:
^Jbrian@my-cool-project^Jsbt>
expectation
In all prior versions of sbt the prompt appears like so:
brian@my-cool-project
sbt>
notes
If 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".