rich icon indicating copy to clipboard operation
rich copied to clipboard

Add "crop_top" and "ellipsis_top" options for vertical overflow of live display

Open alexplavan opened this issue 2 years ago • 0 comments

Type of changes

  • [ ] Bug fix
  • [x] New feature
  • [ ] Documentation / docstrings
  • [ ] Tests
  • [ ] Other

Checklist

  • [x] I've run the latest black with default args on new code.
  • [ ] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • [x] I've added tests for new code.
  • [x] I accept that @willmcgugan may be pedantic in the code review.

Description

Hi!

I tried to use Live to display continuously updating stream of text and realized that existing vertical overflow options are pretty inconvenient. I'd like new lines to appear at the bottom of the console window so that only the latest information is displayed. So I added "crop_top" option for it, and also "ellipsis_top" for symmetry.

alexplavan avatar Dec 25 '23 20:12 alexplavan