Commit Graph

12 Commits

Author SHA1 Message Date
ticki 5b94db9663 Merge 2016-07-23 17:49:52 +02:00
ticki e36ff1c71b Termion 1.0.0: Complete overhaul of how escape codes are handled, add truecolor support.
This commit is a major semver bump. Every progra utilizing escape codes generated by Termion is likely broken. The main change is to make each escape has their own type implementing the Display trait.

- Use formatters, mainly Display for escapes.

- Add Truecolor support (`color::Rgb`).

- Put each primitive into distinct modules.

- Add is_tty for checking if some stream is a TTY.

- Add multiple new examples.
2016-07-23 16:40:27 +02:00
IGI-111 cc9c32b981 added mouse input
The event system has been reworked to allow the detection of mouse
events as well as key presses.
Xterm, rxvt and X10 emulated escape codes are supported, they are
enabled and disabled by sending the right escape codes when creating a
RawTerminal.

To allow for byte manipulation, which was necessary to implement those
features, the backend iterator has been changed from chars() to bytes()
(with specific treatment of unicode sequences), making the whole crate
not require nightly rustc.
2016-07-19 18:17:12 +02:00
ticki a7e05eef63 Merge branch 'master' of github.com:Ticki/libterm 2016-07-03 13:36:46 +02:00
ticki fa4a6cfa5a Make 'nightly' a default feature 2016-07-03 13:33:25 +02:00
Jeremy Soller af5d04d3b6 Update Cargo.toml 2016-07-02 08:51:50 -06:00
Ticki 4bd96b06ef Simplify dependencies 2016-03-29 08:00:01 +02:00
Ticki 28a95cf447 Libterm is now termion 2016-03-15 21:36:33 +01:00
Ticki f2af496bbe Don't import libc, when not supported 2016-03-15 15:46:51 +01:00
Ticki 6f1621d2d0 Introduce 'Key', which can decode special key input 2016-03-09 09:39:22 +01:00
Florian Gilcher 5a11c6d2c7 Use libc from crates.io 2016-03-08 11:15:41 +01:00
Ticki 8a172fdbda Add README 2016-03-06 14:55:01 +01:00