10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d00b5b5 commit 55fef91Copy full SHA for 55fef91
src/Symfony/Component/Console/Cursor.php
@@ -81,13 +81,17 @@ public function show()
81
/**
82
* Clears all the output from the current line.
83
*/
84
- public function clearLine(bool $fromCurrentPosition = false)
+ public function clearLine()
85
{
86
- if (true === $fromCurrentPosition) {
87
- $this->output->write("\x1b[K");
88
- } else {
89
- $this->output->write("\x1b[2K");
90
- }
+ $this->output->write("\x1b[2K");
+ }
+
+ /**
+ * Clears all the output from the current line after the current position.
91
+ */
92
+ public function clearLineAfter()
93
+ {
94
+ $this->output->write("\x1b[K");
95
}
96
97
0 commit comments