Libterm is now termion

This commit is contained in:
Ticki 2016-03-15 21:36:33 +01:00
parent 6ca81b2ec0
commit 28a95cf447
8 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
[package] [package]
name = "libterm" name = "termion"
version = "0.1.0" version = "0.1.0"
authors = ["Ticki <Ticki@users.noreply.github.com>"] authors = ["Ticki <Ticki@users.noreply.github.com>"]

View File

@ -1,4 +1,4 @@
libterm Termion
======= =======
A pure Rust library for handling, manipulating and reading information about terminals. This provides a full-featured alternative to Termbox. A pure Rust library for handling, manipulating and reading information about terminals. This provides a full-featured alternative to Termbox.
@ -34,7 +34,7 @@ Usage
See `examples/`, and the documentation, which can be rendered using `cargo doc`. See `examples/`, and the documentation, which can be rendered using `cargo doc`.
For a more complete example, see [a minesweeper implementation](https://github.com/redox-os/games-for-redox/blob/master/src/minesweeper.rs), that I made for Redox using libterm. For a more complete example, see [a minesweeper implementation](https://github.com/redox-os/games-for-redox/blob/master/src/minesweeper.rs), that I made for Redox using termion.
TODO TODO
---- ----

View File

@ -1,6 +1,6 @@
extern crate libterm; extern crate termion;
use libterm::{TermWrite, IntoRawMode, async_stdin}; use termion::{TermWrite, IntoRawMode, async_stdin};
use std::io::{Read, Write, stdout, stdin}; use std::io::{Read, Write, stdout, stdin};
use std::thread; use std::thread;
use std::time::Duration; use std::time::Duration;

View File

@ -1,9 +1,9 @@
extern crate libterm; extern crate termion;
#[cfg(feature = "nightly")] #[cfg(feature = "nightly")]
fn main() { fn main() {
use libterm::{TermRead, TermWrite, IntoRawMode, Key}; use termion::{TermRead, TermWrite, IntoRawMode, Key};
use std::io::{Write, stdout, stdin}; use std::io::{Write, stdout, stdin};
let stdin = stdin(); let stdin = stdin();

View File

@ -1,6 +1,6 @@
extern crate libterm; extern crate termion;
use libterm::TermRead; use termion::TermRead;
use std::io::{Write, stdout, stdin}; use std::io::{Write, stdout, stdin};
fn main() { fn main() {

View File

@ -1,6 +1,6 @@
extern crate libterm; extern crate termion;
use libterm::{TermWrite, IntoRawMode, Color, Style}; use termion::{TermWrite, IntoRawMode, Color, Style};
use std::io::{Read, Write, stdout, stdin}; use std::io::{Read, Write, stdout, stdin};
fn main() { fn main() {

View File

@ -1,6 +1,6 @@
extern crate libterm; extern crate termion;
use libterm::terminal_size; use termion::terminal_size;
fn main() { fn main() {
println!("Size is {:?}", terminal_size().unwrap()) println!("Size is {:?}", terminal_size().unwrap())

View File

@ -1,4 +1,4 @@
//! Libterm is a pure Rust library for reading, manipulating, and handling terminals. //! termion is a pure Rust library for reading, manipulating, and handling terminals.
//! //!
//! This crate is not stable, yet. However, if you do want stability, you should specify the //! This crate is not stable, yet. However, if you do want stability, you should specify the
//! revision (commit hash) in your `Cargo.toml`, this way builds are complete reproducible, and won't //! revision (commit hash) in your `Cargo.toml`, this way builds are complete reproducible, and won't