SwiftCurses

1.0.1

Make terminal applications quickly with ncurses + Swift
Jomy10/SwiftCurses

What's New

1.0.1

2024-01-05T12:18:08Z
  • Added package manager information for apt and yum

SwiftCurses

examples

SwiftCurses is a Swifty wrapper for ncurses.

ncurses - CRT screen handling and optimization package

Hello World

import SwiftCurses

try initScreen() { scr in
    try scr.print("Hello world !!!")
    scr.refresh()
    try scr.getChar()
}

Installation

ncuses 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.

ncurses info

Running the examples

swift run SwiftCursesExamples [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

License

Since the original is licensed under the MIT license, this library is also licensed under the MIT license.

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Nov 28 2024 09:30:08 GMT-1000 (Hawaii-Aleutian Standard Time)