Skip to content

Commit 25d36f9

Browse files
pbcol: explicitly flush.console() each time
1 parent 2a4e86e commit 25d36f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/handler_pbcol.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
#'
2121
#' @example incl/handler_pbcol.R
2222
#'
23+
#' @importFrom utils flush.console
2324
#' @export
2425
handler_pbcol <- function(adjust = 0.0, pad = 1L, done_col = "blue", todo_col = "cyan", intrusiveness = getOption("progressr.intrusiveness.terminal", 1), target = "terminal", ...) {
2526
cat_ <- function(...) {
2627
cat(..., sep = "", collapse = "", file = stderr())
28+
flush.console()
2729
}
2830

2931
erase_progress_bar <- function() {

0 commit comments

Comments
 (0)