Skip to content

Conversation

@sam-mccall
Copy link

This matches the contract of io.Writer. Similar for WriteString.

Functions that only output SGR escapes no longer return the number of
bytes written. In addition to adding implementation complexity (they
can't be written in terms of Write()), the inconsistency in return
values would be confusing.

Fixes #1.

This matches the contract of `io.Writer`. Similar for `WriteString`.

Functions that *only* output SGR escapes no longer return the number of
bytes written. In addition to adding implementation complexity (they
can't be written in terms of `Write()`), the inconsistency in return
values would be confusing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant