[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Prompt appears in async shell results
From: |
Ihor Radchenko |
Subject: |
Re: [BUG] Prompt appears in async shell results |
Date: |
Mon, 19 Feb 2024 11:10:59 +0000 |
Matt <matt@excalamus.com> writes:
> - Split prompt filtering and input echoing into two filters
> + this seems to imply a =-hook= or =-functions= type implementation
Not necessarily. You may just split the filter into (1) prompt
remover; (2) body remover. The filter does not need to interact with
comint buffer and may simply be provided a regexp/string to be removed.
Then, the caller will be responsible to supply prompt regexp/body.
--
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>