[PR] #272 from Un1q32: Add "Apple Terminal"

Add `Apple_Terminal` to list of special cases in get_term()
This commit is contained in:
Azalea 2024-05-16 01:51:00 +08:00 committed by GitHub
commit a2abe13b86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4547,10 +4547,10 @@ get_term() {
# Workaround for macOS systems that # Workaround for macOS systems that
# don't support the block below. # don't support the block below.
case $TERM_PROGRAM in case $TERM_PROGRAM in
"iTerm.app") term="iTerm2" ;; "iTerm.app") term="iTerm2" ;;
"Terminal.app") term="Apple Terminal" ;; "Terminal.app"|"Apple_Terminal") term="Apple Terminal" ;;
"Hyper") term="HyperTerm" ;; "Hyper") term="HyperTerm" ;;
*) term="${TERM_PROGRAM/\.app}" ;; *) term="${TERM_PROGRAM/\.app}" ;;
esac esac
# Most likely TosWin2 on FreeMiNT - quick check # Most likely TosWin2 on FreeMiNT - quick check