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:
@@ -3371,7 +3371,8 @@ get_term_font() {
|
|||||||
|
|
||||||
"Apple_Terminal")
|
"Apple_Terminal")
|
||||||
term_font="$(osascript <<END
|
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
|
END
|
||||||
)"
|
)"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user