graze / buffered-console
This package is abandoned and no longer maintained.
The author suggests using the graze/console-diff-renderer package instead.
only write output to a console that has changed
v1.1.1
2026-05-28 17:57 UTC
Requires
- php: ^7.4 || ^8.0
- symfony/console: ^3.4 | ^4.0 | ^5.0
Requires (Dev)
- graze/standards: ^3.0
- mockery/mockery: ^1.3
- phpunit/phpunit: ^9.3
- squizlabs/php_codesniffer: ^4.0
This package is auto-updated.
Last update: 2026-05-28 18:05:35 UTC
README
Only render things that have changed to the console.
Usage
$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
Install
Via Composer
$ composer require graze/console-diff-renderer
Development
$ make build
Testing
$ make test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email security@graze.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.