Commit Graph

224 Commits

Author SHA1 Message Date
Alexandre Bury 8c82c461f9 Handles CSI `~` sequences with multiple values (#70)
* Handles CSI `~` sequences with multiple values

Fixes #62

* Fix doc typo
2016-11-06 10:23:02 +01:00
Alexandre Bury 786001f095 Fix CSI sequence detection (#69)
Properly detects CSI sequence termination.

Fixes #47, #68.
2016-11-06 10:22:12 +01:00
ticki f49a6e501b Merge branch 'master' of github.com:Ticki/libterm 2016-11-02 18:47:37 +01:00
ticki a3ad019010 Yes.
No.
2016-11-02 18:47:24 +01:00
ticki bb8d1704cd Revert "True terminal restoration" (#67) 2016-10-27 22:09:41 +02:00
IGI-111 0e0b5be856 Added true terminal restoration (#66)
Using the "alternate screen" capability, the RawTerminal trait restores
the terminal in its previous state by sending the proper escape codes.
2016-10-27 22:03:29 +02:00
Alexandre Bury 09d31132e2 Protects AsyncReader::read against empty buffer. (#65)
Move the check to the beginning of the loop to protect against empty buffer.
2016-10-27 22:02:29 +02:00
ticki 2d625d8c57 Bump version. 2016-10-26 11:58:03 +02:00
ticki 936c4336ce Merge branch 'master' of github.com:Ticki/libterm 2016-10-26 11:56:00 +02:00
ticki 8ccc67cf33 Update the mouse example.
We use click and drag.
2016-10-26 11:55:47 +02:00
Matthew Nicholson ea06c6fd56 Modify Keys and Events to detect Esc key presses (#45)
* modify Keys and Events to detect Esc key presses

The strategy used here is to read two bytes at a time, going on the
assumption that escape sequences will consist of multi byte reads and
solitary Esc key presses will consist of single byte reads.

Tests had to be modified to account for these new multi byte reads by
including dummy bytes when a single byte was previously expected.

Fixes ticki/termion#43

* expand keys example to include Esc key presses

* add test for Esc key press
2016-10-26 11:53:36 +02:00
Jordan MacDonald 654db645cb Derive PartialEq for Rgb type (#56) 2016-10-22 08:40:06 +02:00
David Irvine 5085815f58 bug/lib.rs Allow musl builds (#58) 2016-10-20 14:28:34 +02:00
Alexandre Bury 4358ed6c48 Derive Copy for color::{Rgb, Fg, Bg, Reset} (#54) 2016-10-09 07:13:41 +02:00
j-browne 0b24a3446d Change is_tty example to conform to new signature (#52)
Commit 0d1025c532 changed the signature of
is_tty, but the example was not updated.
2016-10-07 07:43:10 +02:00
Esption a0751f21b0 Add Debug to color structs and Clone to Rgb / Fg / Bg (#51) 2016-10-03 07:15:12 +02:00
ticki 44c847924c Add good documentation to the list of 'features'. 2016-10-02 22:35:21 +02:00
ticki e30add91e0 Specify that Termion is stable. 2016-10-02 22:33:06 +02:00
ticki f2cec304e8 Default to the TTY device in async_stdin. 2016-09-24 20:04:46 +02:00
ticki 0d1025c532 Take a reference to the stream instead of the stream itself (in `is_tty` 2016-09-24 19:13:16 +02:00
ticki e63b645859 Update the documentation. 2016-09-07 11:39:32 +02:00
ticki 5fa6289df8 Update the README.
Fix the documentation link and format it better.
2016-09-07 11:14:22 +02:00
ticki 2ff0916514 Bump to 1.0.7. 2016-09-07 11:09:48 +02:00
IGI-111 5ebda9866f added mouse hold support (#48)
This adds support for the escape codes generated in rxvt and xterm
format by holding a button and moving the mouse around.
2016-09-07 11:05:41 +02:00
ticki 98a4ccce4b Update documentation link in Cargo.toml. 2016-08-27 11:38:29 +02:00
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