Skip to content

Conversation

@Gbury
Copy link
Contributor

@Gbury Gbury commented Jul 18, 2023

This PR adds pause/resume functions, which are a bit more expressive version of the interject_with function.

Without these functions (i.e. only using the interject_with function), it does not seem possible to implement a fprintf-like logging function, i.e. a function log : Format.formatter -> ('a, Format.formatter, unit) format -> 'a that properly stops rendering of progress bars, does the logging, and then resume printing of the progress bars. The problem part is that such a fprintf-like function returns a function that consumes the printing argument.

This is based on #30

@Gbury
Copy link
Contributor Author

Gbury commented Mar 11, 2024

The CI failure seems unrelated to this PR : see the error

@dinosaure dinosaure merged commit 75d11a2 into craigfe:main Apr 13, 2024
dinosaure added a commit to dinosaure/opam-repository that referenced this pull request Apr 13, 2024
CHANGES:

- Be compatible with MirageOS and remove `ocaml_terminal_get_sigwinch` (@art-w, craigfe/progress#38)
- Clear all lines in `interject_with` (@Gbury, craigfe/progress#30)
- Add `Display.remove_line` (@mbarbin, craigfe/progress#26)
- Fix compilation for OCaml 5.2 (reported by @Gbury, fixed by @dinosaure, craigfe/progress#40)
- Add `Display.{pause,resume}` (@Gbury, craigfe/progress#37)
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.

2 participants