Commit Graph

299 Commits

Author SHA1 Message Date
ticki ffd4953022 Merge branch 'master' of github.com:Ticki/libterm 2016-08-27 11:31:07 +02:00
ticki a18e367e5f Use docs.rs for documentation.
Instead of outdated self-hosted docs, we let the awesome
[docs.rs](https://docs.rs) do the job for us.
2016-08-27 11:29:57 +02:00
llogiq 21716b2f93 fixed a few clippy warnings (#44) 2016-08-04 22:37:03 +02:00
ticki 32d62043a7 Bump to 1.0.5 2016-08-01 11:55:24 +02:00
Jeremy Soller a3cc227620 Convert VarError to io::Error (#41) 2016-07-30 16:37:12 +02:00
Jeremy Soller f9928bd6fe Fix Redox `get_tty` by adding `env` import (#40) 2016-07-30 11:48:27 +02:00
ticki 7e3ed4ec93 Fix Redox get_tty 2016-07-29 21:56:33 +02:00
ticki 07301d4c24 Merge branch 'master' of github.com:Ticki/libterm 2016-07-29 19:50:42 +02:00
ticki 8572ee6eb8 Get the tty device, get_tty 2016-07-29 19:49:29 +02:00
Markus Unterwaditzer 3c123df1fe Add migration path for TermRead (#38) 2016-07-27 20:42:59 +02:00
ticki dcc371356d Merge pull request #37 from aeosynth/patch-1
Update keys.rs
2016-07-25 15:20:21 +02:00
James Campos a84670a51a Update keys.rs
fix message not appearing
2016-07-25 04:41:19 -07:00
ticki 95bce6092a Update README 2016-07-24 20:27:14 +02:00
ticki 5634d5d082 Fix Goto 2016-07-24 20:22:47 +02:00
ticki eb1c1e5907 Bump to 1.0.2 2016-07-24 20:01:21 +02:00
ticki cd6b692db4 Merge pull request #33 from jackpot51/patch-1
Add escapes to undo styles
2016-07-24 19:56:45 +02:00
ticki c43f54accd Merge pull request #34 from jackpot51/patch-2
Allow colors to be reset to terminal defaults
2016-07-24 19:54:50 +02:00
ticki e4b6e0597c Bump to 1.0.1 2016-07-24 19:12:59 +02:00
Jeremy Soller b81bcc6749 Fix formatting 2016-07-24 08:24:49 -06:00
Jeremy Soller ef023ed596 Allow colors to be reset to terminal defaults 2016-07-24 08:23:10 -06:00
Jeremy Soller 6cdcbac536 Add escapes to undo styles 2016-07-24 08:19:34 -06:00
ticki 1d63d09e27 Merge pull request #32 from jackpot51/patch-1
Fix RawTerminal drop
2016-07-24 15:35:03 +02:00
Jeremy Soller fae35e2ea1 Fix RawTerminal drop 2016-07-24 07:07:21 -06:00
ticki 011b26b5c9 Fix tables 2016-07-24 11:30:51 +02:00
ticki f21a5ceeed Merge pull request #31 from ticki/termion-fmt-overhaul
Termion fmt overhaul
2016-07-24 01:16:43 +02:00
ticki c202c0405d Exclude certain files from package 2016-07-24 01:08:33 +02:00
ticki 7aa50d3077 Update Cargo.toml 2016-07-24 01:01:13 +02:00
ticki b6c01d91ab Add changelog 2016-07-24 00:53:16 +02:00
ticki af7221e447 Update README 2016-07-24 00:32:21 +02:00
ticki 25c7cd8635 Fix Redox raw mode 2016-07-23 22:06:17 +02:00
ticki 9bd833a663 Fix the tests 2016-07-23 20:41:43 +02:00
ticki 59d4ae427a Fix mouse input 2016-07-23 19:03:03 +02:00
ticki 30afb4c32e Fix examples & merge 2016-07-23 18:50:33 +02:00
ticki 5b94db9663 Merge 2016-07-23 17:49:52 +02:00
ticki b17d0151d9 Update readme, fix rainbow example 2016-07-23 17:32:08 +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
ticki fb1d702b13 Merge pull request #29 from IGI-111/master
Implemented mouse input
2016-07-20 13:54:56 +02:00
IGI-111 1c50a795f8 added some tests 2016-07-20 13:06:04 +02:00
IGI-111 ab12a8f8a6 fixed formatting 2016-07-20 11:03:30 +02:00
IGI-111 206c61de9e made mouse optional and fixed small issues 2016-07-20 01:13:03 +02:00
ticki 220005031b Merge pull request #27 from Munksgaard/add-controls
Add more controls
2016-07-19 22:30:20 +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 12c0ad04db Merge pull request #28 from IGI-111/master
added more special keys
2016-07-18 15:24:17 +02:00
IGI-111 2f6ebb8669 added tests 2016-07-16 22:46:29 +02:00
IGI-111 4402ebd8b3 fix wrong range used 2016-07-16 19:21:51 +02:00
IGI-111 5eae7cf732 function keys now use ranges for detection 2016-07-16 19:10:04 +02:00
IGI-111 70c12b20d6 added doc for function keys 2016-07-16 18:51:33 +02:00
IGI-111 3552c6eae0 added rxvt Home and End escape codes 2016-07-15 12:19:02 +02:00
IGI-111 0e74a7672f added more special keys
Key now supports Home, End, PageUp, PageDown, Delete, Insert and
Function keys. All this is done through the detection of both VT100
escape codes and more modern standard counterparts.
For instance, F2 can be both
    ESC OQ
on VT100, screen, and some versions of xterm and
    ESC [12~
on rxvt and other xterm versions depending on your terminal
2016-07-15 07:41:31 +02:00
Philip Munksgaard fa75b334d0 Improve function documentation 2016-07-14 21:51:00 +02:00