From 50960d16b66679b81e4f69b451d834695c86b8c6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 16 Nov 2021 04:07:38 -0500 Subject: expose some extra internal state to help reproduce line wrapping adds `row_wrapped` and `cursor_state_formatted` to allow you to better recreate the internal state of the cursor when using `rows_formatted`. also make `rows_formatted` keep track of the wrapping state itself, since there are some edge cases that aren't really able to easily be tracked externally. --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index c83ecba..a391fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ ### Added * `Screen::alternate_screen` to determine if the alternate screen is in use +* `Screen::row_wrapped` to determine whether the row at the given index should + wrap its text +* `Screen::cursor_state_formatted` to set the cursor position and hidden state + (including internal state like the one-past-the-end state which isn't visible + in the return value of `cursor_position`) + +### Fixed + +* `Screen::rows_formatted` now outputs correct escape codes in some edge cases + at the beginning of a row when the previous row was wrapped ## [0.12.0] - 2021-03-09 -- cgit v1.2.3-54-g00ecf