Skip to content

More clearing methods #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 2, 2018
Merged

More clearing methods #7

merged 2 commits into from
May 2, 2018

Conversation

AydinHassan
Copy link
Member

@AydinHassan AydinHassan commented May 1, 2018

@AydinHassan AydinHassan requested a review from mikeymike May 1, 2018 16:17
@codecov-io
Copy link

codecov-io commented May 1, 2018

Codecov Report

Merging #7 into master will decrease coverage by 1.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master      #7      +/-   ##
===========================================
- Coverage     81.52%   80.5%   -1.03%     
- Complexity       82      83       +1     
===========================================
  Files             7       7              
  Lines           157     159       +2     
===========================================
  Hits            128     128              
- Misses           29      31       +2
Impacted Files Coverage Δ Complexity Δ
src/UnixTerminal.php 69.23% <100%> (-1.83%) 41 <1> (+1)

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 a6ad7c4...61d9d24. Read the comment docs.

/**
* Erase the entire current line
*/
public function clearEntireLine() : void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this just replace clear line, not sure what the difference is between the two

Maybe the current clear line only does from cursor to the right the same amount of cols as the width 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I wasn't sure - they definitely provide different functions like you describe, not sure whether both are needed. I guess there might be for other use cases ?

@AydinHassan AydinHassan merged commit f98c611 into master May 2, 2018
@AydinHassan AydinHassan deleted the add-clearing-methods branch May 2, 2018 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants