Libterm is now termion
This commit is contained in:
parent
6ca81b2ec0
commit
28a95cf447
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "libterm"
|
||||
name = "termion"
|
||||
version = "0.1.0"
|
||||
authors = ["Ticki <Ticki@users.noreply.github.com>"]
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
@ -34,7 +34,7 @@ Usage
|
|||
|
||||
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
|
||||
----
|
||||
|
|
|
@ -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::thread;
|
||||
use std::time::Duration;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
extern crate libterm;
|
||||
extern crate termion;
|
||||
|
||||
|
||||
#[cfg(feature = "nightly")]
|
||||
fn main() {
|
||||
use libterm::{TermRead, TermWrite, IntoRawMode, Key};
|
||||
use termion::{TermRead, TermWrite, IntoRawMode, Key};
|
||||
use std::io::{Write, stdout, stdin};
|
||||
|
||||
let stdin = stdin();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extern crate libterm;
|
||||
extern crate termion;
|
||||
|
||||
use libterm::TermRead;
|
||||
use termion::TermRead;
|
||||
use std::io::{Write, stdout, stdin};
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -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};
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extern crate libterm;
|
||||
extern crate termion;
|
||||
|
||||
use libterm::terminal_size;
|
||||
use termion::terminal_size;
|
||||
|
||||
fn main() {
|
||||
println!("Size is {:?}", terminal_size().unwrap())
|
||||
|
|
|
@ -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
|
||||
//! revision (commit hash) in your `Cargo.toml`, this way builds are complete reproducible, and won't
|
||||
|
|
Loading…
Reference in New Issue