How to run terminal command from external processes #19037

Open
opened 2026-01-31 06:32:09 +00:00 by claunia · 0 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).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19037