From 520ec3dbfd208c99f9b184ab0a4baeab9a93b556 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sat, 3 Nov 2018 14:40:22 +0100 Subject: UI/TUI: improvements and cleanups for scrolling and clearing - TUI: _never_ rely on BCE for implicit clearing, only explicit commands. - TUI: use unibi_erase_chars when possible. - TUI: use end-exclusive ranges for invalid and cleared areas - screen: scrolling leaves scrolled in aree undefined. This is a conservative change, a client assuming the old semantics will still behave correctly. - screen: factor out vsep handling from line drawing. This is needed anyway for the multigrid refactor. - screen: simplifications of win_do_lines --- runtime/doc/ui.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt index 3477e53545..c021f236c8 100644 --- a/runtime/doc/ui.txt +++ b/runtime/doc/ui.txt @@ -325,14 +325,14 @@ numerical highlight `id`:s to the actual attributes. +-------------------------+ src_top | | src (moved up) and dst | | |-------------------------| dst_bot | - | src (cleared) | | + | src (invalid) | | +=========================+ src_bot < If `rows` is less than zero, move a rectangle in the SR down, this can happen while scrolling up. > +=========================+ src_top - | src (cleared) | | + | src (invalid) | | |------------------------ | dst_top | | src (moved down) and dst| | +-------------------------+ src_bot | @@ -348,6 +348,10 @@ numerical highlight `id`:s to the actual attributes. end-exclusive, which is consistent with API conventions, but different from `set_scroll_region` which was end-inclusive. + The scrolled-in area will be filled using |ui-event-grid_line| directly + after the scroll event. The UI thus doesn't need to clear this area as + part of handling the scroll event. + ============================================================================== Legacy Grid Events (cell based) *ui-grid-old* -- cgit