{"id":24319736,"url":"https://github.com/ppkfs/bearlibterminal-hs","last_synced_at":"2025-09-05T00:50:17.594Z","repository":{"id":243490467,"uuid":"812579683","full_name":"PPKFS/bearlibterminal-hs","owner":"PPKFS","description":"Low level Haskell bindings to the BearLibTerminal graphics library.","archived":false,"fork":false,"pushed_at":"2025-07-22T16:43:10.000Z","size":498,"stargazers_count":21,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T01:37:37.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PPKFS.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-09T09:55:21.000Z","updated_at":"2025-07-11T06:15:29.000Z","dependencies_parsed_at":"2024-08-28T21:14:14.365Z","dependency_job_id":"32fbf546-50d7-44c9-a12c-da3b10763c8e","html_url":"https://github.com/PPKFS/bearlibterminal-hs","commit_stats":null,"previous_names":["ppkfs/bearlibterminal-hs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PPKFS/bearlibterminal-hs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fbearlibterminal-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fbearlibterminal-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fbearlibterminal-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fbearlibterminal-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PPKFS","download_url":"https://codeload.github.com/PPKFS/bearlibterminal-hs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PPKFS%2Fbearlibterminal-hs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273695203,"owners_count":25151482,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-17T15:39:13.599Z","updated_at":"2025-09-05T00:50:12.579Z","avatar_url":"https://github.com/PPKFS.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Hackage Version](https://img.shields.io/hackage/v/bearlibterminal)\n\n# bearlibterminal-hs -\n\nAlso available on [Hackage](https://hackage.haskell.org/package/bearlibterminal).\n\nLow-level Haskell bindings to the [BearLibTerminal](http://foo.wyrd.name/en:bearlibterminal) graphics library, primarily for roguelike games.\n\n## Description\n\nThe design overview of the original library is excellent to get an understanding of how things work: http://foo.wyrd.name/en:bearlibterminal:design.\n\n## Getting Started\n\n### Installing\n\n* This library assumes you have built the main `BearLibTerminal` library (or downloaded the precompiled binaries available from http://foo.wyrd.name/en:bearlibterminal) and your build tool can find it (e.g. by setting `LD_LIBRARY_PATH` or `DYLD_LIBRARY_PATH`).\n* Add `bearlibterminal` to your `*.cabal` `build-depends`.\n* Enjoy.\n\n## How can I do things?\n\nThis is pretty much a 1-to-1 mapping of the original BLT API, with some marshalling of types and wrappers around function calls that take C strings (these are offered in `CString`, `Text`, and `String` flavours).\n\nEvery API call is available as both a raw FFI call (`c_terminal_snake_case`) and as a monadic `MonadIO m =\u003e ... m a` function.\n\nOther notes:\n- Colours are still simply 4-byte `Int`s. Higher level colour functions are available in `roguefunctor`.\n- `terminalComposition` takes a `TerminalCompositionMode` rather than raw integers.\n- Events read by `terminal_peek`, `terminal_read` are returned as raw integers (`terminalPeekCode`) and as `Keycode`s (`terminalPeek`).\n\n## This is a bit too low level for me...\n\nCheck out the Haskell roguelike toolkit library [roguefunctor](https://github.com/ppkfs/roguefunctor), which is the high-level, opinionated wrapper around this library with nicer abstractions for positions, colours, config options, event handling, rendering, and so forth.\n\n# Screenshots from the Omni demo\n\n![screenshot](./Media/tilesets.png)\n![screenshot](./Media/fontsize.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppkfs%2Fbearlibterminal-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppkfs%2Fbearlibterminal-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppkfs%2Fbearlibterminal-hs/lists"}