Skip to content

Commit

Permalink
fix: terminal persistence and scrollback
Browse files Browse the repository at this point in the history
[--terminal-persistence=clear-on-rebuild] will no longer destroy
scrollback on some faulty terminals

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Apr 30, 2022
1 parent 4043f59 commit 6edda81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- Watch mode now default to clearing the terminal on rebuild(#5636, fixes,
#5216, @rgrinberg)

- `--terminal-persistence=clear-on-rebuild` will no longer destroy scrollback
on some terminals (#5636, @rgrinberg)

- Add a fmt command as a shortcut of `dune build @fmt --auto-promote` (#5574,
@tmattio)

Expand Down
2 changes: 1 addition & 1 deletion otherlibs/stdune/console.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Backend = struct
Ansi_color.prerr
(Pp.seq (Pp.map_tags msg ~f:User_message.Print_config.default) Pp.cut)

let reset () = prerr_string "\x1bc"
let reset () = prerr_string "\x1b[H\x1b[2J"
end

module Dumb : S = struct
Expand Down

0 comments on commit 6edda81

Please sign in to comment.