{"id":15393278,"url":"https://github.com/joachimschmidt557/zig-termbox","last_synced_at":"2025-04-15T23:33:29.651Z","repository":{"id":47818277,"uuid":"237222571","full_name":"joachimschmidt557/zig-termbox","owner":"joachimschmidt557","description":"A termbox implementation in zig","archived":false,"fork":false,"pushed_at":"2024-08-08T20:23:47.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-23T17:44:23.266Z","etag":null,"topics":["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/joachimschmidt557.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":"2020-01-30T13:48:36.000Z","updated_at":"2024-11-13T09:02:31.000Z","dependencies_parsed_at":"2024-08-08T22:37:29.371Z","dependency_job_id":"d51aff62-6a56-4ca0-b105-45b6c332f237","html_url":"https://github.com/joachimschmidt557/zig-termbox","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":"0.12195121951219512","last_synced_commit":"831b78fa10def8ed3d229018fdfbaddc5e87b4e9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joachimschmidt557%2Fzig-termbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joachimschmidt557%2Fzig-termbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joachimschmidt557%2Fzig-termbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joachimschmidt557%2Fzig-termbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joachimschmidt557","download_url":"https://codeload.github.com/joachimschmidt557/zig-termbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241226832,"owners_count":19930488,"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":["zig","zig-package"],"created_at":"2024-10-01T15:18:38.927Z","updated_at":"2025-04-15T23:33:29.645Z","avatar_url":"https://github.com/joachimschmidt557.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-termbox\n\ntermbox-inspired library for creating terminal user interfaces\n\nWorks with Zig 0.14.0.\n\n## Concepts\n\n`termbox` is a *double-buffered* terminal library. This means that\nwhen you call functions to draw on the screen, you are not actually\nsending data to the terminal, but instead act on an intermediate data\nstructure called the *back buffer*. Only when you call\n`Termbox.present`, the terminal is actually updated to reflect the\nstate of the *back buffer*.\n\nAn advantage of this design is that repeated calls to\n`Termbox.present` only update the parts of the terminal interface that\nhave actually changed since the last call. `termbox` achieves this by\ntracking the current state of the terminal in the internal *front\nbuffer*.\n\n## Examples\n\n```zig\nconst std = @import(\"std\");\n\nconst termbox = @import(\"termbox\");\nconst Termbox = termbox.Termbox;\n\npub fn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    defer _ = gpa.deinit();\n    const allocator = gpa.allocator();\n\n    var t = try Termbox.init(allocator);\n    defer t.shutdown() catch {};\n\n    var anchor = t.back_buffer.anchor(1, 1);\n    try anchor.writer().print(\"Hello {s}!\", .{\"World\"});\n\n    anchor.move(1, 2);\n    try anchor.writer().print(\"Press any key to quit\", .{});\n\n    try t.present();\n\n    _ = try t.pollEvent();\n}\n```\n\nFurther examples can be found in the `examples` subdirectory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoachimschmidt557%2Fzig-termbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoachimschmidt557%2Fzig-termbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoachimschmidt557%2Fzig-termbox/lists"}