ncurses provides Scala Native bindings for the GNU Ncurses C library.
See https://edadma.github.io/ncurses/.
To use this library, libncurses-dev needs to be installed:
sudo apt install libncurses-devInclude the following in your project/plugins.sbt:
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")Include the following in your build.sbt:
resolvers += Resolver.githubPackages("edadma")
libraryDependencies += "io.github.edadma" %%% "ncurses" % "0.2.6"Use the following import in your code:
import io.github.edadma.ncurses._import io.github.edadma.ncurses._
object Main extends App {
initscr /* Start curses mode */
printw("Hello World !!!"); /* Print Hello World */
refresh /* Print it on to the real screen */
getch /* Wait for user input */
endwin /* End curses mode */
}