-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is hSupportsANSIColor correct in emacs? #150
Comments
The gist is that even if you do This line in one of the linked PRs https://github.com/haskell/haskell-mode/pull/1608/files#diff-170ec957d1245a41f5cd84e55aa1326f9c7ec2021fbb9a679eba7afc2ca7c3ddR107 gives an example of what Emacs can do here - |
OK, so it requires either manually call I think this is all quite wrong. If Thus, I suggest deprecating |
Do what you feel is best, but please don't break tools that are working just fine. |
|
@andreasabel as an Agda developer, I suspect you are an Emacs user ;) Could you possibly opine? |
So on macOS with my emacs I get in
This seems to match the |
@andreasabel my point was that having |
ansi-terminal/src/includes/Common-Include.hs
Lines 247 to 252 in 1ca977b
hSupportsANSIColor
was introduced in #75 by @fommil to implement UnkindPartition/tasty#233, but I struggle to find any reference for this incantation.If I open emacs, go for
M-x compile
and probe the terminal I getTERM=dumb
andINSIDE_EMACS=28.2,compile
. But this terminal still does not support colors (after all, it'sdumb
) as can be checked by, say, running anytasty
test suite:If I go fo
M-x shell
thenTERM=xterm-color
andINSIDE_EMACS=28.2,compile
, and this terminal indeed support colors. But this case is already handled by normalhSupportsANSI
:ansi-terminal/src/System/Console/ANSI/Unix.hs
Lines 84 to 87 in 1ca977b
(This is my first time running emacs, so maybe I'm doing something horribly stupid?..)
The text was updated successfully, but these errors were encountered: