{"id":13626580,"url":"https://github.com/xyaman/mibu","last_synced_at":"2026-01-17T02:42:37.548Z","repository":{"id":42008264,"uuid":"413143521","full_name":"xyaman/mibu","owner":"xyaman","description":"Pure Zig library for low-level terminal manipulation: zero heap allocations, UTF-8 support, text styling, color output, cursor and screen control, key and mouse event handling.","archived":false,"fork":false,"pushed_at":"2025-12-06T10:51:30.000Z","size":105,"stargazers_count":120,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-10T04:42:43.331Z","etag":null,"topics":["ansi","color","console","cursor","terminal","tui","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/xyaman.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":"2021-10-03T17:08:47.000Z","updated_at":"2025-12-06T10:51:34.000Z","dependencies_parsed_at":"2024-09-08T03:33:48.698Z","dependency_job_id":"44aafc07-5272-4613-a51b-bc7489ff2779","html_url":"https://github.com/xyaman/mibu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xyaman/mibu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyaman%2Fmibu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyaman%2Fmibu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyaman%2Fmibu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyaman%2Fmibu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyaman","download_url":"https://codeload.github.com/xyaman/mibu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyaman%2Fmibu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ansi","color","console","cursor","terminal","tui","zig","zig-package"],"created_at":"2024-08-01T21:02:24.226Z","updated_at":"2026-01-17T02:42:37.540Z","avatar_url":"https://github.com/xyaman.png","language":"Zig","funding_links":[],"categories":["Libraries","Zig"],"sub_categories":[],"readme":"# mibu\n\n**mibu** is a pure Zig library for low-level terminal manipulation.\n\n**Status:** This library is in beta. Breaking changes may occur.\n\n\u003e Tested with zig version `0.15.1` (release)\n\n## Features\n\n- Zero heap allocations.\n- UTF-8 character support.\n- Terminal raw mode support.\n- Text styling: bold, italic, underline.\n- Color output: supports 8, 16, and true color (24-bit).\n- Cursor movement and positioning functions.\n- Screen clearing and erasing utilities.\n- Key event handling: codepoints, modifiers, and special keys.\n- Mouse event handling: click, scroll, and release actions.\n\n## How to use\n\nAdd the library as a dependency in your `build.zig.zon` file:\n\n```bash\nzig fetch --save git+https://github.com/xyaman/mibu\n```\n\nImport the dependency in your `build.zig` file:\n\n```zig\nconst mibu_dep = b.dependency(\"mibu\", .{});\nexe.root_module.addImport(\"mibu\", mibu_dep.module(\"mibu\"));\n```\n\nUse the library in your Zig code:\n\n```zig\nconst std = @import(\"std\");\nconst mibu = @import(\"mibu\");\nconst color = mibu.color;\n\npub fn main() void {\n    std.debug.print(\"{s}Hello World in purple!\\n\", .{color.print.bgRGB(97, 37, 160)});\n}\n```\n\n## Getting Started\n\nSee the [examples directory](examples/).\n\nYou can run the examples with the following command:\n\n```bash\n# Prints text with different colors\nzig build color\n\n# Prints what key you pressed, until you press `q` or `ctrl+c`\nzig build event\n\nzig build alternate_screen\n```\n\n## TODO\n\n- [ ] Mouse: Click and move (drag)\n\n## Projects that use `mibu`\n\n- [zigtris](https://github.com/ringtailsoftware/zigtris)\n- [chip8 emulator (wip)](https://github.com/xyaman/chip8)\n- [2048 in zig](https://codeberg.org/Vulwsztyn/2048_zig)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyaman%2Fmibu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyaman%2Fmibu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyaman%2Fmibu/lists"}