File tree 2 files changed +29
-3
lines changed
2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 2.2.0 (2018-09-03)
4
+
5
+ * Feature / Fix: Accept CR as an alias for LF to support more platforms.
6
+ (#79 by @clue )
7
+
8
+ The <kbd >enter</kbd > key will usually end the line with a ` \n ` (LF)
9
+ character on most Unix platforms. Common terminals also accept the
10
+ <kbd >^M</kbd > (CR) key in place of the <kbd >^J</kbd > (LF) key.
11
+
12
+ By now allowing CR as an alias for LF in this library, we can significantly
13
+ improve compatibility with this common usage pattern and improve platform
14
+ support. In particular, some platforms use different TTY settings (` icrnl ` ,
15
+ ` igncr ` and family) and depending on these settings emit different EOL
16
+ characters. This fixes issues where <kbd >enter</kbd > was not properly
17
+ detected when using ` ext-readline ` on Mac OS X, Android and others.
18
+
19
+ * Fix: Fix and simplify restoring TTY mode when ` ext-readline ` is not in use.
20
+ (#74 and #78 by @clue )
21
+
22
+ * Update project homepage, minor code style improvements and sort dependencies.
23
+ (#72 and #81 by @clue and #75 by @localheinz )
24
+
3
25
## 2.1.0 (2018-02-05)
4
26
5
27
* Feature: Add support for binding custom functions to any key code
Original file line number Diff line number Diff line change @@ -588,11 +588,11 @@ ob_start(function ($chunk) use ($stdio) {
588
588
The recommended way to install this library is [ through Composer] ( https://getcomposer.org ) .
589
589
[ New to Composer?] ( https://getcomposer.org/doc/00-intro.md )
590
590
591
- This project follows [ SemVer] ( http ://semver.org/) .
591
+ This project follows [ SemVer] ( https ://semver.org/) .
592
592
This will install the latest supported version:
593
593
594
594
``` bash
595
- $ composer require clue/stdio-react:^2.1
595
+ $ composer require clue/stdio-react:^2.2
596
596
```
597
597
598
598
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
@@ -644,12 +644,16 @@ $ php vendor/bin/phpunit
644
644
645
645
## License
646
646
647
- MIT
647
+ This project is released under the permissive [ MIT license] ( LICENSE ) .
648
+
649
+ > Did you know that I offer custom development services and issuing invoices for
650
+ sponsorships of releases and for contributions? Contact me (@clue ) for details.
648
651
649
652
## More
650
653
651
654
* If you want to learn more about processing streams of data, refer to the documentation of
652
655
the underlying [ react/stream] ( https://github.com/reactphp/stream ) component.
656
+
653
657
* If you build an interactive CLI tool that reads a command line from STDIN, you
654
658
may want to use [ clue/arguments] ( https://github.com/clue/php-arguments ) in
655
659
order to split this string up into its individual arguments and then use
You can’t perform that action at this time.
0 commit comments