Skip to content

TyOverby/rust-termbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Rust wrapper for the termbox library.

Build Status

Crate documentation.

The original termbox library was created by nsf.

Install

  1. Install original termbox library
  2. Add termbox as a cargo dependency
[dependencies.termbox]
git = "git@github.com:TyOverby/rust-termbox.git"

Hello World example

extern crate std;
extern crate termbox;

use std::io::timer::sleep;
use std::time::duration::Duration;
use tb = termbox;

fn main() {
    tb::init();
    tb::print(1, 1, tb::Bold, tb::White, tb::Black, "Hello, world!");
    tb::present();
    sleep(Duration::milliseconds(1000));
    tb::shutdown();
}

License

MIT

About

A Rust wrapper for the termbox library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%