Local Echo: Predict the display of remote characters #11295

Open
opened 2026-01-31 02:43:39 +00:00 by claunia · 4 comments
Owner

Originally created by @MarnoRossouwX on GitHub (Nov 6, 2020).

Description of the new feature/enhancement

Predict characters that will be displayed in the terminal without having to wait for the shell. This is done in the 1.51 release of Visual Studio Code and is explained in detail on its release notes: https://code.visualstudio.com/updates/v1_51#_local-echo

As explained in the Visual Studio Code release notes, this will be particularly useful when working over an ssh connection.

Proposed technical implementation details (optional)

Originally created by @MarnoRossouwX on GitHub (Nov 6, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Predict characters that will be displayed in the terminal without having to wait for the shell. This is done in the 1.51 release of Visual Studio Code and is explained in detail on its release notes: [https://code.visualstudio.com/updates/v1_51\#_local-echo](https://code.visualstudio.com/updates/v1_51\#_local-echo) As explained in the Visual Studio Code release notes, this will be particularly useful when working over an ssh connection. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureArea-OutputProduct-Terminal labels 2026-01-31 02:43:39 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 8, 2020):

Well that's certainly an interesting idea. There's a little more discussion here. Specifically that calls out not doing this in the alt buffer, which I think is a reasobaly assumption.

From purely an implementation standpoint, I wonder if there's an easy way to do this with "overlays" like we had considered years ago for popups. I'm not sure that we'd want to actually populate the buffer with these "predicted" contents, we'd need some way to keep the predictions separate.

@zadjii-msft commented on GitHub (Nov 8, 2020): Well that's certainly an interesting idea. There's a little more discussion [here](https://www.reddit.com/r/programming/comments/jp25ks/visual_studio_code_october_2020/gbcaawg/). Specifically that calls out _not_ doing this in the alt buffer, which I think is a reasobaly assumption. From purely an implementation standpoint, I wonder if there's an easy way to do this with "overlays" like we had considered years ago for popups. I'm not sure that we'd want to actually populate the buffer with these "predicted" contents, we'd need some way to keep the predictions separate.
Author
Owner

@DHowett commented on GitHub (Dec 4, 2020):

This sounds a lot like mosh.

@DHowett commented on GitHub (Dec 4, 2020): This sounds a lot like `mosh`.
Author
Owner

@djsavvy commented on GitHub (Dec 7, 2020):

Does this really need to be implemented in the terminal itself? I feel like delegating this functionality to mosh makes more sense.

@djsavvy commented on GitHub (Dec 7, 2020): Does this really need to be implemented in the terminal itself? I feel like delegating this functionality to `mosh` makes more sense.
Author
Owner

@gakio12 commented on GitHub (Dec 10, 2020):

mosh requires a server component to be installed. The functionality in VSCode does not require a remote component.

@gakio12 commented on GitHub (Dec 10, 2020): `mosh` requires a server component to be installed. The functionality in VSCode does not require a remote component.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11295