Contents

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"]
)

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