From 8a0b1d9c3f5a9ddb98469a340bbcd06374d4a24e Mon Sep 17 00:00:00 2001 From: Dan Aloni Date: Sat, 14 Oct 2017 20:35:56 +0300 Subject: Implement user actions for font resize (#625) Adds support for font resizing at run-time. Three new actions are introduced: * IncreaseFontSize - Increases current font size by 1.0 * DecreaseFontSize - Decreases current font size by 1.0 * ResetFontSize - Resets font size to that specified in the configuration. The stock config files have example configuration for each which should match gnome-terminal. For convenience, the config entries are: - { key: Key0, mods: Control, action: ResetFontSize } - { key: Equals, mods: Control, action: IncreaseFontSize } - { key: Subtract, mods: Control, action: DecreaseFontSize } --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index ec327009..ca7a40c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -188,7 +188,7 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box> { // // The second argument is a list of types that want to be notified // of display size changes. - display.handle_resize(&mut terminal, &mut [&mut pty, &mut processor]); + display.handle_resize(&mut terminal, &config, &mut [&mut pty, &mut processor]); // Draw the current state of the terminal display.draw(terminal, &config, processor.selection.as_ref()); -- cgit v1.2.3-54-g00ecf