Terminal in ZIG done right.
Tested on Windows, macOS and Linux.
Every function is rigorously tested, making the library safe, reliable, and ready for production.
The library is designed to be as efficient as possible, with a focus on performance.
đš đ API Reference â Detailed documentation of available functions.
đš đ Comparisons â Detailed comparison with other libraries.
This library provides several sections, each with its own approach to handling Terminal in the ZIG language.
Detailed terminal information ensuring cross-platform compatibility.
Comprehensive terminal settings for cross-platform compatibility.
Utility functions for ANSI escape code manipulation and terminal styling.
Robust event handling for terminal key presses and mouse events.
Seamless Command Line Integration with ZIG.
mibu
vs. SuperZIG/io Terminal
ModuleFeature | mibu | SuperZIG/io Terminal Module |
---|---|---|
Platform Support | Linux only | Cross Platform â Supports Linux, Windows, and macOS |
API Usability | Provides a limited set of functionalities; the API can be more complex and less intuitive | Offers a comprehensive and easy-to-use API with clear, well-documented functions (e.g., listenUntil , listenUntilWith ) |
Key Event Handling | Covers basic terminal input handling | Robust event handling supporting modifiers (Ctrl, Alt, Shift), Unicode (e.g., Arabic, English, etc.), and simultaneous key detection (e.g., Ctrl+Alt+Up) |
Documentation | Minimal documentation and examples | Detailed documentation with examples and extensive testing |
Extensibility | Basic functionality with limited scope | Modular design with separate sub-modules (info, settings, ansi, cli, events, and upcoming prompts) enabling future expansion |
SuperZIG/io Terminal Module aims to provide a powerful, yet intuitive solution for terminal input handling across multiple platforms. While mibu offers a baseline solution for Linux environments, our library delivers a more complete and flexible experience with support for modern features like Unicode input and advanced modifier detection.