Only render things that have changed to the console.
$output = new DiffConsoleOutput($existing);
$output->reWrite([
'first line',
'second line',
]);
$output->reWrite([
'first line here',
'second line',
]);
This will navigate the cursor to the end of first line
and write here
then navigate the cursor back to the end.
- Supports Formatting
- Supports ANSI control codes
- Will wrap around based on the terminal size
- Can trim based on the terminal size
- Will only write the number of lines that are visible to the user
Via Composer
$ composer require graze/console-diff-renderer
$ make build
$ make test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email security@graze.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.