From 9316771f64842533181cfb04a27aa9ae809cc435 Mon Sep 17 00:00:00 2001 From: Tuomas Siipola Date: Sat, 6 May 2017 08:45:23 -0700 Subject: Add window padding option Padding can be configured by using the `padding` field in the config file, like so: padding: x: 2 y: 2 which would result in a 2px padding within each side of the window. --- src/input.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index e2b96c60..a1bd5c9a 100644 --- a/src/input.rs +++ b/src/input.rs @@ -546,6 +546,8 @@ mod tests { height: 51.0, cell_width: 3.0, cell_height: 3.0, + padding_x: 0.0, + padding_y: 0.0, }; let mut terminal = Term::new(&config, size); -- cgit