Skip to content

Instantly share code, notes, and snippets.

@hirofumi
Created January 11, 2018 02:55
Show Gist options
  • Save hirofumi/9feff6aec0e7a1fee4eaf797ec41691f to your computer and use it in GitHub Desktop.
Save hirofumi/9feff6aec0e7a1fee4eaf797ec41691f to your computer and use it in GitHub Desktop.
~/.sbt/1.0/jline-workarounds.sbt
// from https://github.com/sbt/sbt/issues/3841#issuecomment-355794813
jlineWorkarounds
def jlineWorkarounds = Def.settings(
Seq(
console in Compile,
console in Test,
consoleProject in Compile,
consoleProject in Test,
) map { key =>
key := key
.dependsOn(Def.task { jline.TerminalFactory.get.init })
.andFinally(jline.TerminalFactory.get.restore)
.value
}: _*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment