Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

C binding of os-terminal crate.

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
```