Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Conversation

pq
Copy link
Contributor

@pq pq commented Mar 28, 2017


@override
bool get ansiSupported => io.Platform.ansiSupported;
bool get ansiSupported => io.stdin.supportsAnsiEscapes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also now stdout.supportsAnsiEscapes. We currently don't need it, but maybe we should make sure it can be added easily in a non-confusing way? Would it make sense to call this stdinAnsiSupported?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me. I'll update.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm. On the other hand, this would break all clients. I leave that call to you and @tvolkert. Happy either way.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't be too worried about that and just bump the major version number to indicate that we made incompatible API changes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it would be a breaking change, let's hold off and make the breaking change if and when such an API is added to the SDK.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK! Stand by...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry. Missed you comment @tvolkert. Thanks.

@tvolkert
Copy link
Contributor

LGTM

@tvolkert tvolkert merged commit 74fc8c2 into dart-archive:master Mar 28, 2017
tvolkert added a commit that referenced this pull request Mar 28, 2017
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants