Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs shell: outlining input, output, error

Tags:

shell

emacs

I am searching for a way to distinguish visually in a shell/comint what the user typed, what was output and what was output by stderr. Is there a mode for this?

(Just to be sure, I am not interested in ansi-color-for-comint-mode)

like image 717
false Avatar asked Apr 29 '12 23:04

false


People also ask

What is Eshell in Emacs?

Eshell is a shell-like command interpreter implemented in Emacs Lisp. It invokes no external processes except for those requested by the user.

How do I get shells in Emacs?

You can start an interactive shell in Emacs by typing M-x shell . By default, this will start the standard Windows shell cmd.exe . Emacs uses the SHELL environment variable to determine which program to use as the shell.


1 Answers

The Elisp facilities for running asynchronous processes do not provide good support to distinguish the stderr from the stdout output, so currently comint does not let you distinguish the two. OTOH coming already displays differently the text the user typed (comint-highlight-input face), the prompt (comint-highlight-prompt face), and the process output (no special face, i.e.`default).

like image 130
Stefan Avatar answered Sep 19 '22 19:09

Stefan