v2.2.0
版本发布时间: 2018-09-03 20:25:24
clue/reactphp-stdio最新发布版本:v2.6.0(2022-03-18 23:13:45)
-
Feature / Fix: Accept CR as an alias for LF to support more platforms. (#79 by @clue)
The enter key will usually end the line with a
\n
(LF) character on most Unix platforms. Common terminals also accept the ^M (CR) key in place of the ^J (LF) key.By now allowing CR as an alias for LF in this library, we can significantly improve compatibility with this common usage pattern and improve platform support. In particular, some platforms use different TTY settings (
icrnl
,igncr
and family) and depending on these settings emit different EOL characters. This fixes issues where enter was not properly detected when usingext-readline
on Mac OS X, Android and others. -
Fix: Fix and simplify restoring TTY mode when
ext-readline
is not in use. (#74 and #78 by @clue) -
Update project homepage, minor code style improvements and sort dependencies. (#72 and #81 by @clue and #75 by @localheinz)