Swiftpack.co - nysfred/Cncurses as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by nysfred.
nysfred/Cncurses 0.1.1
Config files for my GitHub profile.
⭐️ 0
🕓 2 years ago
.package(url: "https://github.com/nysfred/Cncurses.git", from: "0.1.1")

Cncurses

A system library wrapper for ncurses(3) to be used with Swift.

How to use

Add it as a dependency in your swift package manifest (Package.swift):

let package = Package(
    dependencies: [
        .package(url: "https://github.com/rderik/Cncurses.git", from: "0.1.0")
    ]
)

Now you can import it from your Swift files as a regular module, as make calls to ncurses(3) functions. For example:

import Cncurse

initscr()

addstr("hello")
refresh()
getch()

endwin()

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics