Add font size for Apple Terminal

This PR extends the Apple Terminal AppleScript call that fetches the font. It now fetches the font size and appends it to the font name to make the output match other terminals.
This commit is contained in:
MVS 2021-12-29 21:06:17 -06:00 committed by GitHub
parent ccd5d9f526
commit 32fece816f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3371,7 +3371,8 @@ get_term_font() {
"Apple_Terminal")
term_font="$(osascript <<END
tell application "Terminal" to font name of window frontmost
tell application "Terminal" to font name of window frontmost \
& " " & font size of window frontmost
END
)"
;;