]> arthur.barton.de Git - ax-zsh.git/commitdiff
10_terminal: Implement "axzsh_resize_terminal COLUMNS LINES"
authorAlexander Barton <alex@barton.de>
Sun, 21 Feb 2016 22:22:56 +0000 (23:22 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 21 Feb 2016 22:22:56 +0000 (23:22 +0100)
core/10_terminal/10_terminal.zshrc

index 874ef8060fc5587e62f983c339062c1c9a668f44..e7c1eecfcb2b41404015c789e6da19217ae7b61f 100644 (file)
@@ -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"