Sublime Forum

It is possible to use the external windows terminal for Sublime Text Build output?

#1

I’ve been reading around but all my google searches seem to conflict with sublimes own terminal. I found this video, but sublime uses the old CMD prompt instead of Windows Terminal.

Am much more at home with windows terminal. ( I spent allot of time tweaking) I would like to use Sublime Text to print my python programs output to it (including programs that require interaction).

I can handle things like toggling window focus with AutoHotkey, if needed.

Also is it possible to reuse an open Windows Terminal when I build a python program so that I am not constantly opening new terminal windows.

Thank you for taking your time reading this.

0 Likes

#2

Ultimately, all a sublime-build does is execute some external program to do something; the example in my video gets the build to run cmd and ask it to run the program so that it appears in an external window. Presuming that Windows Terminal also takes command line arguments to tell it what to start, it should be possible to ask it to do the same thing.

I’ve never done that myself (I just use Terminus for some things and a manual external terminal for others), but from the looks of the Command Line documentation it should indeed be possible to get it running.

Whether or not it can reuse an existing window depends on the program itself (in this case Windows Terminal); if it has a command line argument that tells it to close a tab if it exists and then open it again, then you could achieve the same effect.

0 Likes