Skip to content

Commit

Permalink
Silence errors on fwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Mar 27, 2020
1 parent c7ce4d4 commit 4c826e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Cursor.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function getCurrentPosition(): array
$sttyMode = shell_exec('stty -g');
shell_exec('stty -icanon -echo');

fwrite($this->input, "\033[6n");
@fwrite($this->input, "\033[6n");

$code = trim(fread($this->input, 1024));

Expand Down

0 comments on commit 4c826e0

Please sign in to comment.