feat: Add Go bindings package with centralized C header#84
Merged
kommander merged 2 commits intoanomalyco:mainfrom Aug 28, 2025
Merged
feat: Add Go bindings package with centralized C header#84kommander merged 2 commits intoanomalyco:mainfrom
kommander merged 2 commits intoanomalyco:mainfrom
Conversation
kommander
reviewed
Aug 26, 2025
Collaborator
|
We should have a generator for the c headers from lib.zig |
Contributor
Author
Hopefully zig will fix theirs one day |
Collaborator
|
You accidentally committed the example binary? |
Contributor
Author
fixed |
Collaborator
|
I think this just might be going in. Let me check header generation with 0.15.1 |
|
@kommander how's it looking? |
Collaborator
|
The zig interface changed on main, I think it is broken. |
Contributor
Author
updated |
- Add complete Go bindings for OpenTUI with CGO integration - Move opentui.h to centralized location for all language bindings - Include working examples (basic and interactive console demo) - Add Go package to main repository build system - Full test suite and documentation - Remove binaries and unnecessary files from repository
- Update C header with new function signatures and types - Add widthMethod parameter to buffer and text buffer creation - Convert cursor functions to require renderer parameter - Add new terminal capability functions - Add Kitty keyboard protocol support - Add terminal setup functions - Update tests and documentation to match new APIs - All tests passing with updated function signatures
moutansos
pushed a commit
to moutansos/opentui
that referenced
this pull request
Aug 29, 2025
## Summary - Add complete Go bindings for OpenTUI with CGO integration - Move opentui.h to centralized location for all language bindings - Include working examples (basic and interactive console demo) ## Test plan - [x] Go package builds successfully (`go build ./...`) - [x] All tests pass (`go test -v`) - [x] Basic example runs and displays output - [x] Console demo runs with interactive features - [x] Integration with main repository build system
msmps
pushed a commit
that referenced
this pull request
Jan 8, 2026
## Summary - Add complete Go bindings for OpenTUI with CGO integration - Move opentui.h to centralized location for all language bindings - Include working examples (basic and interactive console demo) ## Test plan - [x] Go package builds successfully (`go build ./...`) - [x] All tests pass (`go test -v`) - [x] Basic example runs and displays output - [x] Console demo runs with interactive features - [x] Integration with main repository build system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
go build ./...)go test -v)