Monterey Terminal.app Version 2.12 (443)

Hi - I noticed that with macOS Monterey 12.0.1 and the new Terminal.app that is included in the OS that if you launch Terminal and then launch another application, Terminal stays on top and then I have to CMD+TAB to get to the new application I just launched. I am also a developer, so, when I launch an app from terminal it also comes up, but in the background. This is completely new behavior and different from the prior major version of MacOS. In fact, I have not seen this behavior in the past 12 years. I looked to see if there were any new settings that would allow me to toggle this behavior on or off, but could not see anything different. Any ideas? Was this a deliberate change or a regression in build 443 of Terminal.app 2.12 over 2.11 in Big Sur?

MacBook Pro 13″, macOS 11.4

Posted on Nov 8, 2021 7:16 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 11, 2021 7:15 PM

I figured it out. It is definitely a bug in the latest version of Terminal.app that comes with Monterey. The bug is with "Secure Keyboard Entry". I removed my com.apple.Terminal.plist from ~/Library/Applications/Preferences. Then I launched Terminal.app which forced it to create a new .plist file. This stopped new apps from going into the background behind the terminal window and rendered them normally (in the foreground, and in the order they are launched they get focus). Then I chose the Terminal menu and selected "Secure Keyboard Entry" and from that point on apps began going into the background again behind the terminal window with the terminal window staying in focus. It was not, as I had originally suspected, a change to the .plist format between 2.11 and 2.12 but is actually something that has been introduced in the way that Secure Keyboard Entry now works.

Similar questions

21 replies
Question marked as Top-ranking reply

Nov 11, 2021 7:15 PM in response to RenaissanceNomad

I figured it out. It is definitely a bug in the latest version of Terminal.app that comes with Monterey. The bug is with "Secure Keyboard Entry". I removed my com.apple.Terminal.plist from ~/Library/Applications/Preferences. Then I launched Terminal.app which forced it to create a new .plist file. This stopped new apps from going into the background behind the terminal window and rendered them normally (in the foreground, and in the order they are launched they get focus). Then I chose the Terminal menu and selected "Secure Keyboard Entry" and from that point on apps began going into the background again behind the terminal window with the terminal window staying in focus. It was not, as I had originally suspected, a change to the .plist format between 2.11 and 2.12 but is actually something that has been introduced in the way that Secure Keyboard Entry now works.

Nov 11, 2021 7:15 PM in response to VikingOSX

I figured it out. It is definitely a bug in the latest version of Terminal.app that comes with Monterey. The bug is with "Secure Keyboard Entry". I removed my com.apple.Terminal.plist from ~/Library/Applications/Preferences. Then I launched Terminal.app which forced it to create a new .plist file. This stopped new apps from going into the background behind the terminal window and rendered them normally (in the foreground, and in the order they are launched they get focus). Then I chose the Terminal menu and selected "Secure Keyboard Entry" and from that point on apps began going into the background again behind the terminal window with the terminal window staying in focus. It was not, as I had originally suspected, a change to the .plist format between 2.11 and 2.12 but is actually something that has been introduced in the way that Secure Keyboard Entry now works.

Nov 9, 2021 9:25 AM in response to RenaissanceNomad

I suggest you review what 3rd party system modifications you have installed.


Another possibility could be some shell customization. That would explain why you and VikingOSX are seeing it in Terminal.


Lastly, it could be some other bug in Monterey. It is definitely not an inherent behaviour in Terminal. But some other innocent change to System Preferences could be causing it. One problem I have noticed in Monterey is that my mouse pointer has a mind of its own. Clearly Apple has screwed up something in the event processing pipeline. That could be what is causing Terminal to stay activated for you.


Maybe try to create a new user account on your machine and see if Terminal behaves the same way there.

Nov 9, 2021 9:02 AM in response to RenaissanceNomad

I tried again with many apps (Apple and third party – launched directly in Terminal, through Spotlight, through Alfred or by clicking on Dock) and all opened in foreground.


I honestly don't know why it behaves differently on your side or on VikingOSX's side.


Have you tried to save somewhere a copy of Terminal preferences, delete the original one and check if it behaves differently?

Nov 9, 2021 10:44 AM in response to VikingOSX

VikingOSX wrote:

I renamed my ~/.zshrc, ~/.zprofile, and ~/.zshenv files and then formally quit Terminal, and a new Terminal launch behaved the same way, always staying frontmost with other launched applications submerged under it. Rebooted the M1 Pro, and nothing changed in Terminal behavior. Does not appear to be a Zsh initiated problem.

Do you use any of the normal Terminal problem-makers, such as Homebrew?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Monterey Terminal.app Version 2.12 (443)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.