1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-18 05:14:21 -05:00
denoland-deno/cli/util
Chris Veness 75f00eecb0
fix(cli): Make --watcher CLEAR_SCREEN clear scrollback buffer as well as visible screen (#25997)
The --watch option should clear the screen scrollback buffer as well as
the screen itself.

On Ubuntu (22.04 Jammy) the 'clear' command generates
"\x1B[H\x1B[2J\x1B[3J"; that is:
- \E[H  - cursor home
- \E[2J - clear entire screen
- \E[3J - clear entire screen & scrollback buffer.

By contrast, Deno defined CLEAR_SCREEN as "\x1B[2J\x1B[1;1H", which
fails to clear the scrollback buffer.

The "\E[H\E[2J\E[3J" sequence works on MacOS (Sonoma) (using printf);
I'm not able to test on Windows.

Closes https://github.com/denoland/deno/issues/26514
2024-10-27 00:12:40 +02:00
..
progress_bar feat(clean): add progress bar (#25026) 2024-08-14 13:04:07 +02:00
sync fix: support npm:bindings and npm:callsites packages (#24727) 2024-07-26 09:08:15 +02:00
v8 refactor(lsp): Have JS drive TSC event loop in LSP (#23565) 2024-05-09 13:49:10 -07:00
archive.rs fix: Don't shell out to unzip in deno upgrade/compile (#24926) 2024-08-08 00:19:05 -07:00
checksum.rs perf(cli): use faster_hex (#22761) 2024-03-07 10:00:43 -07:00
console.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
diff.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
display.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
draw_thread.rs fix: handle showing warnings while the progress bar is shown (#25187) 2024-08-23 22:07:59 +00:00
extract.rs fix(cli): named export takes precedence over default export in doc testing (#26112) 2024-10-14 19:21:47 -07:00
file_watcher.rs fix(cli): Make --watcher CLEAR_SCREEN clear scrollback buffer as well as visible screen (#25997) 2024-10-27 00:12:40 +02:00
fs.rs chore: upgrade to rust 1.81.0 (#26261) 2024-10-15 21:40:07 +05:30
logger.rs feat: support DENO_LOG env var instead of RUST_LOG (#25356) 2024-09-03 10:36:28 +02:00
mod.rs fix(install): retry downloads of registry info / tarballs (#26278) 2024-10-15 16:46:42 -07:00
path.rs refactor: move NpmCacheDir to deno_cache_dir (#25916) 2024-09-28 08:50:16 -04:00
result.rs refactor(lsp): Have JS drive TSC event loop in LSP (#23565) 2024-05-09 13:49:10 -07:00
retry.rs fix(install): retry downloads of registry info / tarballs (#26278) 2024-10-15 16:46:42 -07:00
text_encoding.rs perf(compile): pass module source data from binary directly to v8 (#26494) 2024-10-24 19:48:48 +00:00
unix.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
v8.rs refactor(lsp): Have JS drive TSC event loop in LSP (#23565) 2024-05-09 13:49:10 -07:00
windows.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00