https://github.com/plos-clan/libos-terminal
C binding of os-terminal crate.
https://github.com/plos-clan/libos-terminal
cross-platform embedded ffi i686 terminal x86-64
Last synced: 17 days ago
JSON representation
C binding of os-terminal crate.
- Host: GitHub
- URL: https://github.com/plos-clan/libos-terminal
- Owner: plos-clan
- License: mit
- Created: 2024-10-19T03:32:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T05:23:16.000Z (about 2 months ago)
- Last Synced: 2025-04-14T12:13:54.259Z (17 days ago)
- Topics: cross-platform, embedded, ffi, i686, terminal, x86-64
- Language: Rust
- Homepage:
- Size: 2.74 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libos-terminal
C binding of `os-terminal` crate for x86 or x86_64 OS that not written in Rust!
## Usage
Download the header file and your prefered version of lib from [releases](https://github.com/plos-clan/libos-terminal/releases/tag/release).
Link the library to your project.
Remember to set `TERMINAL_EMBEDDED_FONT` to your compiler based on the version of the lib you are using.
## Build
Build directly to get the two target files:
```bash
cargo build --release
```The production build will be in `target/release//` directory.
And use `cbindgen` to generate the header file:
```bash
cargo install cbindgen
cbindgen --output os_terminal.h
```