Last active
May 10, 2018 10:53
-
-
Save Eidansoft/fd973c7a02dd8a4de24171305eb7bd10 to your computer and use it in GitHub Desktop.
Control the size and position of a console with a command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After open a lot of console windows with the csshX (ClusterSSH), if the windows are too small to work with, | |
# then is better to resize the consoles and view only one (the rest will be also executing the same commands) | |
# in order to be able to work for example with some editors and other stuff. | |
# move the console to 0,0 | |
printf '\e[3;0;0t' | |
# resize to 27x85 characters (laptop) | |
printf '\e[8;27;85t' | |
# resize to 35x95 characters (desktop) | |
printf '\e[8;35;95t' | |
# easely to add this to your .bash_profile of all your machines and manage all quicker | |
alias console_to_00="printf '\e[3;0;0t'" | |
alias console_resize_laptop="printf '\e[8;27;85t'" | |
alias console_resize_desktop="printf '\e[8;35;95t'" | |
alias console_all_to_laptop="console_to_00 && console_resize_laptop" | |
alias console_all_to_desktop="console_to_00 && console_resize_desktop" | |
# information extracted from | |
# https://apple.stackexchange.com/questions/33736/can-a-terminal-window-be-resized-with-a-terminal-command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment