Return focus to console after using terminal

I am connecting to a database through a VPN. I use terminal to check if VPN is running (or launch it if necessary).

Everything works perfectly!

My question is:
When the query finishes, the focus is on the Terminal tab. I couldn't find a command in rstudioapi to return the focus programmatically to the console. Does such a command exist or is there any other way to do it?

Thank you!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.