Closed elzii closed 3 years ago
Update 1: This also happens in a panel view, not just tab
Update 2: I've narrowed it down to what's causing it, independent of tsc/concurrent/etc.
You can reproduce by running a node file that calls process.stdout.write("\x1Bc")
Perhaps this is solvable by overriding the escape sequence?
Installed Terminus, instantly ran into this problem. This escape sequence is used for clearing the scrollback, and is commonly used by file-watching tools. It's extremely useful for seeing a "clean" result after every rerun, avoiding confusion with previous results. The focus stealing makes Terminus' tabs incompatible with such tools, and it's a shame. Suggestions would be very much appreciated.
Oh, I just realized I have been ignoring this thread. I am on it now. Basically we need to have a version of terminus_reset
that doesn't change focus.
Whoah that was quick. Thanks!
Thank you for bumping it up by the way .
Sample
package.json
I have Terminus opened in a Tab View. If I make a change to my file when running the
type-check:watch
ordevelop
commands, whenever I save the file, the cursor focus will switch to the Terminus tab.It does not happen when running
npm run start
however.Here is the log output with
sublime.log_commands(True)
enabled:When running
npm run type-check:watch
and saving a file (PROBLEM):When running
npm run start
and saving a file (NO PROBLEM)The obvious difference is that
terminus_reset
is being called, which has somewindow.focus_view()
calls in it.