How to run terminal command from external processes #19040

Closed
opened 2026-01-31 06:32:12 +00:00 by claunia · 2 comments
Owner

Originally created by @brupelo on GitHub (Dec 10, 2022).

Here's the thing,

Right now in SublimeText I've been using a custom plugin that allows me to query the existing conemu profiles and pick one to open it directly in conemu, ie:

image

I'm considering to start using terminal instead conemu but I'd like to have a similar behaviour so I'd need to code a similar plugin. Questions:

  • Where can I read the terminal profiles from? I guess they're stored in some json file somewhere?
  • Let's assume I'm able to enumerate all existing terminal profiles from the file, how can I spawn some terminal commands to let's say split the pane & using the selected profile?

Basically the question boils down to know how I can spawn commands from an external process (client) to the terminal (server).

Originally created by @brupelo on GitHub (Dec 10, 2022). Here's the thing, Right now in SublimeText I've been using a custom plugin that allows me to query the existing conemu profiles and pick one to open it directly in conemu, ie: ![image](https://user-images.githubusercontent.com/18058492/206875324-6563b7c3-f594-4bb1-a42a-45b0df573f31.png) I'm considering to start using terminal instead conemu but I'd like to have a similar behaviour so I'd need to code a similar plugin. Questions: - Where can I read the `terminal` profiles from? I guess they're stored in some json file somewhere? - Let's assume I'm able to enumerate all existing `terminal` profiles from the file, how can I spawn some `terminal` commands to let's say split the pane & using the selected profile? Basically the question boils down to know how I can spawn commands from an external process (client) to the terminal (server).
Author
Owner

@zadjii-msft commented on GitHub (Dec 12, 2022):

Those docs answer your question/?

@zadjii-msft commented on GitHub (Dec 12, 2022): * [Where can I find the settings file?](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file) * [Using command line arguments for Windows Terminal](https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows) Those docs answer your question/?
Author
Owner

@brupelo commented on GitHub (Dec 12, 2022):

@zadjii-msft Mike, thanks for the fast reply! Yeah, I think so... I haven't had the time yet to give it a shot yet but I think those will do pretty much... Once I've implemented this one as well as this other pending one https://github.com/microsoft/terminal/issues/14312 I think I'd be in a good spot to transition from conemu to this wonderful clean piece of software. As I said in other thread, you guys been doing some really kick-ass job on the new terminal, I love it :D

@brupelo commented on GitHub (Dec 12, 2022): @zadjii-msft Mike, thanks for the fast reply! Yeah, I think so... I haven't had the time yet to give it a shot yet but I think those will do pretty much... Once I've implemented this one as well as this other pending one [https://github.com/microsoft/terminal/issues/14312](https://github.com/microsoft/terminal/issues/14312) I think I'd be in a good spot to transition from conemu to this wonderful clean piece of software. As I said in other thread, you guys been doing some really kick-ass job on the new terminal, I love it :D
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19040