Max Nikulin <maniku...@gmail.com> writes: > Some shells support "semantic shell" that allows terminal applications > e.g. to copy whole command output. It is based on escape sequences. > > - > https://docs.kde.org/stable5/en/konsole/konsole/semantic-shell-integration.html > - > https://gitlab.freedesktop.org/Per_Bothner/specifications/blob/master/proposals/semantic-prompts.md
I am looking at this gitlab link, and they way it is implemented is simply setting PROMPT in a way that adds these escape sequences to the original PROMPT value. In other words, it is a bit more advanced version of our approach with setting prompt to a unique string - they surround the prompt with unique chars instead. In theory, we can do the same thing, adding some kind of invisible unicode character around the prompt. We may even do it in the existing prompts. Although one downside will be that the unicode character we add may be carried along if the user copies the comint buffer contents. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>