"Cook, Malcolm" <m...@stowers.org> writes: > Since my (bash) shell prompt is a (more or less) constant string (e.g. > "myname@myhost> "). > > So, my workaround is to: > > (setq comint-prompt-regexp "myname@myhost> ") > > Then the filtering works perfectly. > > Of course if I change my name, this will fail. Or, more likely, connect to a > different host within the shell. > > Or if I change PS1 😉 > > It would be useful to automate this a little.
There is internal buffer-local variable called `org-babel-comint-prompt-regexp-old'. If you set it to the default `comint-prompt-regexp', Org will attempt to use it if no prompt is detected for longer than `org-babel-comint-fallback-regexp-threshold' seconds. -- 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>