I found this question Is it possible to define the width/height of a Terminal window with this command: osascript -e \'tell application "Terminal" to do script
and tried setting my Terminal window resolution to 1920x1080 with
osascript -e 'tell application "Terminal" to set bounds of front window to {0, 0, 1920, 1080}'
but the width of the window stretches over the entire screen and it's definitely not 1920x1080. My screen resolution is 2880x1800 (macbook pro 15" retina)
tell application id "com.apple.finder" to get bounds of desktop's window
. That will give you the maximal bounds that can be contained within the visible portion of the screen. – CJK Aug 05 '19 at 17:34