Have anyone added support for ansi-color in compilation-mode Emacs? If so what property/attribute does the color-writing program have to check for in order to make sure its active terminal supports ANSI-escape coloring.
相关问题
- Symbol's function definition is void: declare-
- How to get the return code of a shell script in lu
- Invoking Mirth Connect CLI with Powershell script
- How can I set the SVN password with Emacs 23.1 bui
- Emacs shell: save commit message
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- In IntelliJ IDEA, how can I create a key binding t
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- ess-rdired: I get this error “no ESS process is as
- Emacs/xterm color annoyance on Linux
- Launch interactive SSH bash session from PHP
- Generate disk usage graphs/charts with CLI only to
My optimized solution which don't pollute
M-x grep
(only forM-x compile
):There's already a function for applying color to comint buffers. You simply need to enable it on compilation buffers:
Color writing programs should check the
TERM
environment variable and the terminfo database to check if the terminal supports color. In practice, a lot of programs ignore this and rely on a user setting. Emacs will set the compilation terminal type todumb
by default but this can be overriden by setting thecompilation-environment
variable.