|
From: | Michael Heerdegen |
Subject: | Re: Examining the output of a shell command? |
Date: | Sun, 28 Jun 2015 16:20:18 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Dan Espen <despen@verizon.net> writes: > Maybe the OP doesn't realize that some programs that output > escape sequences won't do so when run as an Emacs shell command. > > /bin/ls being a good example. > > In that case, run: > > /bin/ls --color > > as an Emacs shell command. I guess programs like "ls" check the TERM environment variable. Try: (setenv "TERM" "xterm") (shell-command-to-string "ls --color") Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |