nushell/crates/nu-command/src/platform
nibon7 ca05553fc6
Simplify clear implementation (#11273)
# Description
This PR uses the `crossterm` api to reimplement `clear` command, since
`crossterm` is cross-platform.
This seems to work on linux and windows.

# User-Facing Changes
N/A

# Tests + Formatting
- [x] `cargo fmt --all -- --check` to check standard code formatting
(`cargo fmt --all` applies these changes)
- [x] `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used`
to check that you're using the standard code style
- [x] `cargo test --workspace` to check that all tests pass (on Windows
make sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- [x] `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library

# After Submitting
N/A
2023-12-09 15:24:19 -06:00
..
ansi Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
input Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
clear.rs Simplify clear implementation (#11273) 2023-12-09 15:24:19 -06:00
dir_info.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
du.rs Convert more ShellError variants to named fields (#11222) 2023-12-04 10:19:32 +01:00
is_terminal.rs Add is-terminal to determine if stdin/out/err are a terminal (#10970) 2023-11-21 20:48:39 -06:00
kill.rs Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
mod.rs Add is-terminal to determine if stdin/out/err are a terminal (#10970) 2023-11-21 20:48:39 -06:00
sleep.rs return error when user break sleep by ctrl-c (#10234) 2023-09-05 09:21:30 -05:00
term_size.rs Create Record type (#10103) 2023-08-25 07:50:29 +12:00
whoami.rs Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00