The Eshell works with ansi-color on both Emacs-29 and Emacs-30, don't bother the xterm-color package.
So move the the xterm-color initialization code to its initialization function.
This patch will let the Eshell works with most terminal tools colorful, for example, these command lines will work great in the eshell:
$ /bin/ls --color=tty
$ /bin/git status # with git config color.ui always
Hi,
The Eshell works with ansi-color on both Emacs-29 and Emacs-30, don't bother the
xterm-color
package. So move the the xterm-color initialization code to its initialization function.This patch will let the Eshell works with most terminal tools colorful, for example, these command lines will work great in the eshell: $ /bin/ls --color=tty $ /bin/git status # with git config color.ui always
Please help review the changes. Thanks.