mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
Import latest app updates from streamline
An updated set of source files and initialization was provided by streamline to address issues observed during initial testing. These files have been updated in order to generate a new set of app images.
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Prompts\Concerns;
|
||||
|
||||
trait Erase
|
||||
{
|
||||
/**
|
||||
* Erase the given number of lines downwards from the cursor position.
|
||||
*/
|
||||
public function eraseLines(int $count): void
|
||||
{
|
||||
$clear = '';
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$clear .= "\e[2K".($i < $count - 1 ? "\e[{$count}A" : '');
|
||||
}
|
||||
|
||||
if ($count) {
|
||||
$clear .= "\e[G";
|
||||
}
|
||||
|
||||
static::writeDirectly($clear);
|
||||
}
|
||||
|
||||
/**
|
||||
* Erase from cursor until end of screen.
|
||||
*/
|
||||
public function eraseDown(): void
|
||||
{
|
||||
static::writeDirectly("\e[J");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user