terminal
terminal copied to clipboard
Feature signals
Allow attaching to system signals.
- Add a default handler for resizing and refresh the terminal size.
- Implement non blocking stream reading so we don't block on fread and therefore signal handlers will be executed.
- Upgrade phpstan and fix some issues
@mikeymike I know this is old but do you remember what you wanted to do with this before finishing it?
Codecov Report
Merging #12 into master will decrease coverage by
6.94%
. The diff coverage is60%
.
@@ Coverage Diff @@
## master #12 +/- ##
============================================
- Coverage 80.74% 73.79% -6.95%
- Complexity 85 98 +13
============================================
Files 7 8 +1
Lines 161 187 +26
============================================
+ Hits 130 138 +8
- Misses 31 49 +18
Impacted Files | Coverage Δ | Complexity Δ | |
---|---|---|---|
src/IO/BufferedOutput.php | 81.81% <ø> (ø) |
5 <0> (ø) |
:arrow_down: |
src/IO/NonBlockingResourceInputStream.php | 0% <0%> (ø) |
3 <3> (?) |
|
src/IO/ResourceInputStream.php | 84.61% <100%> (+1.28%) |
8 <6> (+1) |
:arrow_up: |
src/IO/ResourceOutputStream.php | 83.33% <100%> (+1.51%) |
8 <6> (+1) |
:arrow_up: |
src/InputCharacter.php | 100% <100%> (ø) |
12 <0> (ø) |
:arrow_down: |
src/NonCanonicalReader.php | 90.47% <66.66%> (-4.27%) |
11 <4> (+2) |
|
src/UnixTerminal.php | 64.21% <68.42%> (-5.79%) |
49 <8> (+6) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 725f86c...30e5a50. Read the comment docs.