Home

Awesome

ncurses

GitHub release (latest by date including pre-releases) GitHub (Pre-)Release Date GitHub last commit GitHub

ncurses provides Scala Native bindings for the GNU Ncurses C library.

Documentation

See https://edadma.github.io/ncurses/.

Usage

To use this library, libncurses-dev needs to be installed:

sudo apt install libncurses-dev

Include 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._

The obligatory "Hello World" example

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 */
}

License

ISC