{"id":17874247,"url":"https://github.com/jomy10/swiftcurses","last_synced_at":"2025-04-10T16:06:18.773Z","repository":{"id":119774797,"uuid":"601306941","full_name":"Jomy10/SwiftCurses","owner":"Jomy10","description":"Make terminal applications quickly with ncurses + Swift","archived":false,"fork":false,"pushed_at":"2024-12-29T14:06:38.000Z","size":140,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T07:06:03.297Z","etag":null,"topics":["curses","ncurses","ncurses-library","swift","terminal","ui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jomy10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-13T19:47:07.000Z","updated_at":"2025-03-15T00:59:59.000Z","dependencies_parsed_at":"2024-10-25T09:49:07.959Z","dependency_job_id":"b2a6f579-824a-432e-983b-5bf5b73c4913","html_url":"https://github.com/Jomy10/SwiftCurses","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSwiftCurses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSwiftCurses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSwiftCurses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSwiftCurses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jomy10","download_url":"https://codeload.github.com/Jomy10/SwiftCurses/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248250743,"owners_count":21072682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["curses","ncurses","ncurses-library","swift","terminal","ui"],"created_at":"2024-10-28T11:08:10.416Z","updated_at":"2025-04-10T16:06:18.755Z","avatar_url":"https://github.com/Jomy10.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eSwiftCurses\u003c/h1\u003e\n  ❰\n  \u003ca href=\"/Sources/Examples\"\u003eexamples\u003c/a\u003e\n  |\n  \u003ca href=\"https://swiftpackageindex.com/Jomy10/SwiftCurses/master/documentation/swiftcurses\"\u003edocumentation\u003c/a\u003e\n  ❱\n\u003c/div\u003e\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://swiftpackageindex.com/Jomy10/SwiftCurses\"\u003e\u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FJomy10%2FSwiftCurses%2Fbadge%3Ftype%3Dplatforms\"\u003e\u003c/img\u003e\u003c/a\u003e\n  \u003ca href=\"https://swiftpackageindex.com/Jomy10/SwiftCurses\"\u003e\u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FJomy10%2FSwiftCurses%2Fbadge%3Ftype%3Dswift-versions\"\u003e\u003c/img\u003e\u003c/a\u003e\n\u003c/div\u003e\u003cbr/\u003e\n\nSwiftCurses is a Swifty wrapper for ncurses.\n\n\u003e ncurses - CRT screen handling and optimization package\n\n## Hello World\n\n```swift\nimport SwiftCurses\n\ntry initScreen() { scr in\n    try scr.print(\"Hello world !!!\")\n    scr.refresh()\n    try scr.getChar()\n}\n```\n\n## Installation\n\n[ncurses](https://invisible-island.net/ncurses#packages) must be installed on the system.\n\nIn your swift package:\n\n```swift\ndependencies: [\n  .package(url: \"https://github.com/jomy10/SwiftCurses.git\", branch: \"master\")\n]\n```\n\nIn a swift target:\n\n```swift\n.target(\n  name: \"MyTarget\",\n  dependencies: [\"SwiftCurses\"]\n)\n```\n\n## Documentation / tutorials / links\n\nThere is a great ncurses tutorial you can find [here](https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/),\nthe [examples in this repository](/Sources/Examples) show the examples seen in the tutorial.\n\nNCurses documentation can be found [here](https://invisible-island.net/ncurses/man/ncurses.3x.html),\nthough keep in mind some functions may be missing/have a different name.\n\n[ncurses info](https://invisible-island.net/ncurses/)\n\n### Running the examples\n\n```sh\nswift run Examples [name of the example (see main.swift)]\n```\n\n## Questions\n\nFeel free to ask any questions.\n\n## Contributing\n\nAlways looking at improving this library, feel free to leave suggestions/pull requests.\n\n## TODO\n\n- [x] border: https://invisible-island.net/ncurses/man/curs_border.3x.html\n- [x] scr_dump: https://invisible-island.net/ncurses/man/curs_scr_dump.3x.html\n- https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/otherlib.html\n- fill in the todos\n\n## License\n\nSince the original is licensed under the MIT license, this library is also\nlicensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Fswiftcurses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomy10%2Fswiftcurses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Fswiftcurses/lists"}