Commit Graph

283 Commits

Author SHA1 Message Date
Jeremy Soller ac1f828940
Merge pull request #147 from sirtrollraptor/update-repo-refs
Update references to repository
2018-05-06 19:21:25 -06:00
Robert Metcalf 7d97b6424f Update references to repository 2018-05-07 01:41:46 +01:00
ticki b3e0bbdfb7
Merge pull request #127 from nivkner/term_size
use `TIOCGWINSZ` directly from `libc`
2017-11-22 14:21:06 +01:00
Niv Kaminer 00f87e5ed8 use `TIOCGWINSZ` directly from `libc` 2017-10-11 13:06:09 +03:00
ticki 52a22ea873
Bump to 1.5.1. 2017-08-04 00:13:00 +02:00
ticki 792274a641 Merge pull request #119 from redox-os/redox_termios
Move system specific features into sys module
2017-08-03 10:19:32 +02:00
Jeremy Soller 18e589b9d9 Add cursor position save/restore 2017-08-02 20:07:37 -06:00
Jeremy Soller cd455e8358 Move system specific features into sys module 2017-07-31 21:17:47 -06:00
ticki fafd891966 Merge pull request #116 from jackpot51/patch-1
Update tty.rs
2017-07-27 15:01:44 +02:00
Jeremy Soller da9a604c40 Update tty.rs 2017-07-27 07:00:48 -06:00
ticki bc33fe1420
Merge branch 'master' of github.com:Ticki/libterm 2017-07-24 18:56:04 +02:00
ticki 5ad83b76ec
Bump to 1.5.0 2017-07-24 18:55:46 +02:00
ticki 994b0af79f Merge pull request #115 from redox-os/redox_termios
Implement size and is_tty with termios on Redox
2017-07-24 18:51:26 +02:00
Jeremy Soller 5fdabb4320 Implement size and is_tty with termios on Redox 2017-07-23 11:38:47 -06:00
ticki dbf6546b3e Merge pull request #114 from ftilde/master
Add an Iterator on Read that provides both the parsed event and the byte sequence that defines it
2017-07-16 20:43:26 +02:00
ftilde 2f97c69a5c Add EventsAndRaw iter and implement it for Read
- In addition to Events it preserves the byte sequence that created an event. This
  is useful, e.g., for implementing a terminal multiplexer where the raw input
  should in some cases be passed on to another tty.
- In order to ensure backwards compatibility, the function that creates the trait
  is implemented in a separate extension trait.
2017-07-13 01:30:44 +02:00
Matthias Devlamynck c26d2f0a97 Implement hide cursor wrapper type 2017-07-11 10:29:28 +02:00
ticki e07cae2a14
Bump to 1.4.0. 2017-06-10 15:00:39 +02:00
ticki 3ea95e10c4 Merge pull request #109 from jackpot51/patch-1
Fix raw mode on Redox
2017-06-10 10:18:11 +02:00
Jeremy Soller 75b28bab55 Fix raw mode on Redox 2017-06-08 18:47:12 -06:00
ticki caa5b3b6c8 Merge pull request #108 from mcgoo/master
run travis builds on osx also
2017-06-03 23:34:43 +02:00
Jim McGrath bd04d82e5d run travis builds on osx also 2017-06-01 12:48:02 -05:00
ticki be864ee0e7
Fix version in README.md 2017-04-25 20:25:14 +02:00
ticki d86a6b2d9b Merge pull request #100 from IGI-111/linux-function-keys
fix #99
2017-03-29 16:11:35 +02:00
IGI-111 bd9e4eb8e1 fix #99
Add support for F1-F5 in the linux tty.
2017-03-28 10:06:04 +02:00
ticki 7401830c4f
Bump to 1.3.0 2017-03-24 21:53:40 +01:00
ticki 15c65dc5f9
Run rustfmt on the code. 2017-03-24 21:53:05 +01:00
ticki 7351aa3f16 Merge pull request #93 from IGI-111/cursor_pos
added cursor position detection
2017-03-24 21:50:57 +01:00
IGI-111 fa2e86a558 fix for #94 (#95)
parse_utf8_char() makes the assumption that at least four bytes or one UTF-8 glyph are still to read in the input.
2017-03-24 21:50:09 +01:00
IGI-111 5e336e10a1 add support for xterm mouse release code (#97)
Codes of the form `ESC [ < 3 ; Cx ; Cy` were not supported before.
2017-03-24 21:48:55 +01:00
Greg 11a0ee178a Fix terminal size ioctl number on *BSD (#98)
At least on FreeBSD and OpenBSD, TIOCGWINSZ == 0x40087468 just like on
macOS, so change the definition from not-macOS/macOS to Linux/non-Linux.
2017-03-24 21:48:36 +01:00
IGI-111 8760faca15 no need for templating 2017-03-13 11:49:24 +01:00
IGI-111 0758c07ab7 added cursor position detection
This solves #85 in a similar fashion as the color amount detection: the
cursor module now provides a trait that adds a `cursor_pos()` method to
an instance of `Write`. It also corrects that previous implementation
somewhat by making the `CONTROL_SEQUENCE_TIMEOUT` a member of the raw
module and implementing `DetectColors` for any instance of `Write`
rather than just `RawTerminal` (`MouseTerminal` for instance works as
well).
2017-03-12 20:18:32 +00:00
ftilde 95233e9e5c Add support for alternate screen (#88)
* Add (optional) support for alternate screen (#77)

The user can manually switch between main and alternate screen or
(preferably) use the wrapper struct for automatic screen restoration.

* Add two examples for screen switching

* Improve screen module documentation
2017-02-27 13:42:55 +01:00
ticki c676cb43e7 Bump to 1.2.0. 2017-02-26 09:37:35 +01:00
IGI-111 ba72d0bcec Added color support detection (#91)
* Added color support detection

Color support is inferred by using either OSC 4 escape codes or the
value of TERM.

* minor refactor and cosmetic changes
2017-02-26 09:35:39 +01:00
Loïc Damien 23ef0260dd Fix 64 bit build for musl and android (#90) 2017-02-25 20:17:54 +01:00
Alexandre Bury 04f6bcd677 Remove vertical spacing from Readme 2017-01-13 14:19:47 -08:00
Alexandre Bury c9c91292e5 Replace most `std::io::Write::write` with `write_all` (#82)
`std::io::Write` doesn't guarantees that it will write everything,
and could even return a non-fatal `ErrorKind::Interrupted` error.
`write_all` has exactly the code required to deal with this.
2016-12-21 14:20:48 +01:00
ticki c04fd7f263 Optimize SVG.
thx svgo
2016-12-19 19:56:49 +01:00
ticki 38fbf1200e Remove the excessive '['. 2016-12-19 17:39:41 +01:00
ticki 66603eead6 Move the badges outside the table. 2016-12-19 17:39:05 +01:00
ticki 064cfdd5f1 Correct the link. 2016-12-19 17:35:14 +01:00
ticki 461ed46ae0 Fix the Markdown syntax in the README. 2016-12-19 17:34:09 +01:00
ticki dda2b18386 Introducing the Termion logo. 2016-12-19 17:33:09 +01:00
Alexandre Bury 92cbd50c41 Fix typo in Readme 2016-12-19 16:59:28 +01:00
Alexandre Bury de016ae6ce Add travis & crates.io badges
Shamelessly copying Serde's style
2016-12-19 16:51:48 +01:00
Alexandre Bury 0395780f25 Add travis integration (#81)
* Add travis integration

* Update examples/rainbow to work on stable
2016-12-19 16:45:11 +01:00
Alexandre Bury 32ff8ba96e Replace UnknownCsi with generalized Event::Unsupported (#80) 2016-12-19 16:40:44 +01:00
ticki f9eaf6d0bc Merge branch 'master' of github.com:Ticki/libterm 2016-12-18 19:29:18 +01:00