aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-29 10:21:02 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-29 10:21:02 -0700
commit22789f35c7ab90a5ada70fdca25ca1c626eb1ca5 (patch)
tree4588f58a30b542a09fedc143f8ed710115440923 /src/input.rs
parent69ed81d2495c6eb548c44e73c0e9ed359d3820f0 (diff)
downloadr-alacritty-22789f35c7ab90a5ada70fdca25ca1c626eb1ca5.tar.gz
r-alacritty-22789f35c7ab90a5ada70fdca25ca1c626eb1ca5.tar.bz2
r-alacritty-22789f35c7ab90a5ada70fdca25ca1c626eb1ca5.zip
Implement terminal resizing
The resize event is received from glutin on the update thread, but the renderer needs to be informed as well for updating the viewport and projection matrix. This is achieved with an mpsc::channel. To support resizing, the grid now offers methods for growing and shrinking, and there are several implementations available for clear_region based on different Range* types. Core resize logic is all in Term::resize. It attempts to keep as much context as possible when shinking the window. When growing, it's basically just adding rows.
Diffstat (limited to 'src/input.rs')
0 files changed, 0 insertions, 0 deletions