Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edadma/ncurses
Scala Native bindings for the GNU Ncurses C library
https://github.com/edadma/ncurses
bindings ncurses-library scala scala-native
Last synced: 2 days ago
JSON representation
Scala Native bindings for the GNU Ncurses C library
- Host: GitHub
- URL: https://github.com/edadma/ncurses
- Owner: edadma
- License: isc
- Created: 2021-08-15T14:31:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-27T23:59:28.000Z (about 2 years ago)
- Last Synced: 2024-04-22T13:32:51.067Z (7 months ago)
- Topics: bindings, ncurses-library, scala, scala-native
- Language: Scala
- Homepage:
- Size: 114 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-scala-native - ncurses - Bindings for the [GNU Ncurses Library](https://www.gnu.org/software/ncurses/). (Bindings)
README
ncurses
=======![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/edadma/ncurses?include_prereleases) ![GitHub (Pre-)Release Date](https://img.shields.io/github/release-date-pre/edadma/ncurses) ![GitHub last commit](https://img.shields.io/github/last-commit/edadma/ncurses) ![GitHub](https://img.shields.io/github/license/edadma/ncurses)
*ncurses* provides Scala Native bindings for the [GNU Ncurses C library](https://invisible-island.net/ncurses/announce.html).
Documentation
-------------See https://edadma.github.io/ncurses/.
Usage
-----To use this library, `libncurses-dev` needs to be installed:
```shell
sudo apt install libncurses-dev
```Include the following in your `project/plugins.sbt`:
```sbt
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")
```Include the following in your `build.sbt`:
```sbt
resolvers += Resolver.githubPackages("edadma")libraryDependencies += "io.github.edadma" %%% "ncurses" % "0.2.6"
```Use the following `import` in your code:
```scala
import io.github.edadma.ncurses._
```The obligatory "Hello World" example
------------------------------------```scala
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](https://github.com/edadma/ncurses/blob/main/LICENSE)