mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Merge pull request #183 from agavrilov/FixWindowResizingInPancurses
Call resize_term on KeySize
This commit is contained in:
commit
5d8a452b18
@ -413,7 +413,14 @@ impl backend::Backend for Concrete {
|
||||
pancurses::Input::KeySUndo => Event::Refresh,
|
||||
pancurses::Input::KeySuspend => Event::Refresh,
|
||||
pancurses::Input::KeyUndo => Event::Refresh,
|
||||
pancurses::Input::KeyResize => Event::WindowResize,
|
||||
pancurses::Input::KeyResize => {
|
||||
// Let pancurses adjust their structures when the window is resized.
|
||||
// Do it for Windows only, as 'resize_term' is not implemented for Unix
|
||||
if cfg!(target_os = "windows") {
|
||||
pancurses::resize_term(0, 0);
|
||||
}
|
||||
Event::WindowResize
|
||||
},
|
||||
pancurses::Input::KeyEvent => Event::Refresh,
|
||||
// TODO: mouse support
|
||||
pancurses::Input::KeyMouse => self.parse_mouse_event(),
|
||||
|
Loading…
Reference in New Issue
Block a user