From: Alexander Barton Date: Sun, 21 Feb 2016 22:22:56 +0000 (+0100) Subject: 10_terminal: Implement "axzsh_resize_terminal COLUMNS LINES" X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=07a2154ea9e5bf2c1a16dbc0712a3b254b71acfe 10_terminal: Implement "axzsh_resize_terminal COLUMNS LINES" --- diff --git a/core/10_terminal/10_terminal.zshrc b/core/10_terminal/10_terminal.zshrc index 874ef80..e7c1eec 100644 --- a/core/10_terminal/10_terminal.zshrc +++ b/core/10_terminal/10_terminal.zshrc @@ -22,6 +22,11 @@ function axzsh_is_modern_terminal { return 1 } +# Resize terminal window (when possible) +function axzsh_resize_terminal { + printf '\e[8;%d;%dt' "$2" "$1" +} + # Set terminal title # Set terminal "hardstatus" and "icon title"