8000 [Console] Modify console output and print multiple modifyable sections by pierredup · Pull Request #24363 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Modify console output and print multiple modifyable sections #24363

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typos
  • Loading branch information
pierredup committed Mar 20, 2018
commit 493949622c12a3e8d0f8b88e4f5aa3eab7d30782
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGELOG
-----

* added option to run suggested command if command is not found and only 1 alternative is available
* added option to modify console output and print multiple modifyable sections
* added option to modify console output and print multiple modifiable sections

4.0.0
-----
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Helper/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function addRow($row)
}

/**
* Add a row to the table, and re-render the table.
* Adds a row to the table, and re-renders the table.
*/
public function appendRow($row): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function popStreamContentUntilCurrentSection(int $numberOfLinesToClearFr
}

if ($numberOfLinesToClear > 0) {
// Move cursor up n lines
// move cursor up n lines
parent::doWrite(sprintf("\x1b[%dA", $numberOfLinesToClear), false);
// erase to end of screen
parent::doWrite("\x1b[0J", false);
Expand Down
0