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://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. > > It does a bit more. There are escape sequences to mark user input, > program output, and to report program exit status. I had in mind support > of this protocol in comint, so Org babel session make take advantage of > it if the feature is available for a specific interpreter.
If comint can support this, Org should follow. But we first need to get it to comint.el. Will you be willing to? -- 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>