Skip to content

feat(renderer): check for tty when rendering#60

Merged
johnyob merged 1 commit intomainfrom
ajo41@handle-tty-devices
Nov 20, 2025
Merged

feat(renderer): check for tty when rendering#60
johnyob merged 1 commit intomainfrom
ajo41@handle-tty-devices

Conversation

@johnyob
Copy link
Owner

@johnyob johnyob commented Oct 5, 2025

Fixed #35

@johnyob johnyob merged commit 65a32e1 into main Nov 20, 2025
9 checks passed
@johnyob johnyob deleted the ajo41@handle-tty-devices branch November 20, 2025 16:47
johnyob added a commit to johnyob/opam-repository that referenced this pull request Feb 13, 2026
CHANGES:

- feat(renderer): add breaks in large diagnostics ([johnyob/grace#63](johnyob/grace#63))
- feat(renderer): check for tty when rendering ([johnyob/grace#60](johnyob/grace#60))
- fix(renderer): off-by-one in `lines_of_labels` ([johnyob/grace#65](johnyob/grace#65))
- fix(renderer): create 0-sized segment on empty label range ([johnyob/grace#64](johnyob/grace#64))
- fix(renderer): renderer multi-line labels when message is empty ([johnyob/grace#53](johnyob/grace#53))
- fix(renderer): fix errors that occur with special zero-width segments ([johnyob/grace#41](johnyob/grace#41))
- fix(renderer): use `Format.pp_infinity` in `Message.to_string` for OCaml >5.2 ([johnyob/grace#40](johnyob/grace#40))
- refactor!: removes base/core dependency ([johnyob/grace#58](johnyob/grace#58))

### BREAKING CHANGE

* Many base/core interfaces from `Grace` have been replaced with custom ones.
* `Source.reader` has been removed. Use `Source.Reader.t` instead.
johnyob added a commit to johnyob/opam-repository that referenced this pull request Feb 14, 2026
CHANGES:

- feat(renderer): add breaks in large diagnostics ([johnyob/grace#63](johnyob/grace#63))
- feat(renderer): check for tty when rendering ([johnyob/grace#60](johnyob/grace#60))
- fix(renderer): off-by-one in `lines_of_labels` ([johnyob/grace#65](johnyob/grace#65))
- fix(renderer): create 0-sized segment on empty label range ([johnyob/grace#64](johnyob/grace#64))
- fix(renderer): renderer multi-line labels when message is empty ([johnyob/grace#53](johnyob/grace#53))
- fix(renderer): fix errors that occur with special zero-width segments ([johnyob/grace#41](johnyob/grace#41))
- fix(renderer): use `Format.pp_infinity` in `Message.to_string` for OCaml >5.2 ([johnyob/grace#40](johnyob/grace#40))
- refactor!: removes base/core dependency ([johnyob/grace#58](johnyob/grace#58))

### BREAKING CHANGE

* Many base/core interfaces from `Grace` have been replaced with custom ones.
* `Source.reader` has been removed. Use `Source.Reader.t` instead.
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.

Detecting if the output is a tty.

1 participant