SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

SendCode with new Windows Terminal

Open musm opened this issue 4 years ago • 13 comments

How can I setup SendCode to work with the new Windows Terminal? Could we support this configuration.

musm avatar Apr 26 '20 03:04 musm

What is the new Windows Terminal?

randy3k avatar Apr 26 '20 04:04 randy3k

https://github.com/Microsoft/Terminal

https://www.microsoft.com/en-us/p/windows-terminal-preview/9n0dx20hk701?activetab=pivot:overviewtab

musm avatar Apr 26 '20 04:04 musm

Do you know if its' possible? I switched from ConEmu to Windows Terminal and deeply miss using SendCode

musm avatar May 01 '20 19:05 musm

I did some researches and found no way to send things to the new terminal.

randy3k avatar May 01 '20 19:05 randy3k

Do you think you could open an issue at https://github.com/Microsoft/Terminal/issues ? They have been pretty responsive and active.

musm avatar May 01 '20 19:05 musm

In particular, what's the API needed to accomplish this change.

musm avatar May 12 '20 16:05 musm

We basically need a way to send code to the active tab of the terminal. And if I recall correctly, Terminal doesn't support bracketed paste mode, which will make a lot of things broken.

So in order to make it work, in short, we need

  1. a way to send text to the terminal
  2. bracketed paste mode.

randy3k avatar May 12 '20 17:05 randy3k

I opened an issue https://github.com/microsoft/terminal/issues/5873

musm avatar May 13 '20 18:05 musm

For reference https://github.com/microsoft/terminal/issues/3799

musm avatar May 18 '20 02:05 musm

It appears as though this has been implemented recently, see the "sendInput" feature here: https://github.com/microsoft/terminal/releases/tag/v1.3.2382.0.

rsdrahat avatar Sep 21 '20 14:09 rsdrahat

It seems that we still need a way to trigger the action programmatically.

randy3k avatar Sep 22 '20 01:09 randy3k

https://github.com/microsoft/terminal/pull/7249#issuecomment-696844814

Does that help at all?

musm avatar Sep 22 '20 16:09 musm

No, it does not. sendInput is for Terminal generating input into a client application.

DHowett avatar Sep 22 '20 16:09 DHowett