Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法来在 shell/comint 中直观地区分用户键入的内容、输出的内容以及 stderr 的输出内容。有这种模式吗?
(可以肯定的是,我不感兴趣ansi-color-for-comint-mode)
ansi-color-for-comint-mode
运行异步进程的 Elisp 工具不能很好地支持区分 stderr 和 stdout 输出,因此目前 comint 不允许您区分两者。OTOH 的到来已经以不同的方式显示用户输入的文本(comint-highlight-input face)、提示(comint-highlight-prompt face)和过程输出(没有特殊的面,即默认)。