Go to file
Jeremy Soller f5936c0035 Use env for terminal size in redox
Undo color changes to test redox 256 color support

Get terminal size for Redox's kernel terminal

Use env for terminal size in redox
2016-04-02 18:31:03 +02:00
examples Fix #18 2016-04-02 18:05:31 +02:00
src Use env for terminal size in redox 2016-04-02 18:31:03 +02:00
.gitignore Add README 2016-03-06 14:55:01 +01:00
Cargo.toml Simplify dependencies 2016-03-29 08:00:01 +02:00
LICENSE Add license 2016-03-08 09:30:24 +01:00
README.md Add docs link 2016-03-16 08:36:50 +01:00
image.png Example image 2016-03-16 08:11:35 +01:00

README.md

Termion

A pure Rust library for handling, manipulating and reading information about terminals. This provides a full-featured alternative to Termbox.

Supports Redox and POSIX. Untested on Windows.

Documentation. | Examples.

A note on stability

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 break.

Features

  • Raw mode.
  • Cursor movement.
  • Color output.
  • Text formatting.
  • Console size.
  • Control sequences.
  • Termios control.
  • Password input.
  • Redox support.
  • 256-color mode.
  • Panic-free error handling.
  • Special keys events (modifiers, special keys, etc.).
  • Asynchronous key events.

and much more.

Usage

See examples/, and the documentation, which can be rendered using cargo doc.

For a more complete example, see a minesweeper implementation, that I made for Redox using termion.

TODO

  • Mouse input

License

MIT.