Skip to content

Commit e48ad2e

Browse files
committed
Better way to clear the screen.
1 parent 66961f0 commit e48ad2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Console/Debug.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function handle()
7575
return;
7676
}
7777

78-
$this->refresh();
78+
$this->clear();
7979
$this->renderScreen($data);
8080
});
8181

@@ -110,8 +110,8 @@ private function isNewRequest(array $data)
110110
return false;
111111
}
112112

113-
private function refresh()
113+
private function clear()
114114
{
115-
system('clear');
115+
passthru("echo '\033\143'");
116116
}
117117
}

0 commit comments

Comments
 (0)