jomy10/swiftcurses
❰
Hello World
import SwiftCurses
try initScreen() { scr in
try scr.print("Hello world !!!")
scr.refresh()
try scr.getChar()
}Installation
ncurses must be installed on the system.
In your swift package:
dependencies: [
.package(url: "https://github.com/jomy10/SwiftCurses.git", branch: "master")
]In a swift target:
.target(
name: "MyTarget",
dependencies: ["SwiftCurses"]
)Documentation / tutorials / links
There is a great ncurses tutorial you can find here, the examples in this repository show the examples seen in the tutorial.
NCurses documentation can be found here, though keep in mind some functions may be missing/have a different name.
Running the examples
swift run Examples [name of the example (see main.swift)]Questions
Feel free to ask any questions.
Contributing
Always looking at improving this library, feel free to leave suggestions/pull requests.
TODO
- [x] border: https://invisible-island.net/ncurses/man/curs_border.3x.html
- [x] scr_dump: https://invisible-island.net/ncurses/man/curs_scr_dump.3x.html
- https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/otherlib.html
- fill in the todos
License
Since the original is licensed under the MIT license, this library is also licensed under the MIT license.
Package Metadata
Repository: jomy10/swiftcurses
Default branch: master
README: README.md