Commit Graph

15 Commits

Author SHA1 Message Date
Joe Wilm 54d50ed3be Fix scrolling backwards in tmux 2018-06-02 09:32:29 -07:00
Joe Wilm c49a7e88f6 Make number of scrollback lines configurable 2018-06-02 09:32:29 -07:00
Joe Wilm 7fe67743eb Scroll to bottom on character received 2018-06-02 09:32:29 -07:00
Joe Wilm f67b17ca7b wip fix scroll_down 2018-06-02 09:32:29 -07:00
Joe Wilm 9b9b138bac Fir cursor not scrolling 2018-06-02 09:32:29 -07:00
Joe Wilm 5748066b8a Add scrolling limit and update on grow lines 2018-06-02 09:32:29 -07:00
Joe Wilm 45c2b3fbf7 checkpoint: very basic scrolling works
Things that do not work

- Limiting how far back in the buffer it's possible to scroll
- Selections (need to transform to buffer offsets)
2018-06-02 09:32:29 -07:00
Joe Wilm 94796a70fc wip scrollback 2018-06-02 09:24:38 -07:00
Joe Wilm 84769ce170 Remove some unused impls 2018-06-02 09:24:38 -07:00
Joe Wilm 92b11cfa43 Minor improvements 2018-06-02 09:24:38 -07:00
Joe Wilm f13685918f WIP optimize scroll in region
This intends to optimize the case where the top of the scrolling region
is the top of the screen. In theory, scrolling in this case can be
optimized to shifting the start/end of the visible region, and then
rearranging any lines that were not supposed to be scrolled (at the
bottom of the region). However, this didn't produce quite the speedup I
expected.
2018-06-02 09:24:38 -07:00
Joe Wilm 350bb8c800 Use memcpy for resetting row contents
In addition to a marginal performance improvement, this simplifies some
logic in the Term implementation since now the Grid fully handles row
recycling.
2018-06-02 09:24:38 -07:00
Joe Wilm 4ed25009c4 Remove some unused methods and impls 2018-06-02 09:24:38 -07:00
Joe Wilm 6fc0e1ec49 Eliminate ClearRegion trait 2018-06-02 09:24:38 -07:00
Joe Wilm 277425956f Move grid Row and tests into submodules
This is part of some cleanup for the grid module as a whole.
2018-06-02 09:24:38 -07:00