nushell/crates/nu-command/src/platform
Yuto e9d4730099
refactor input command (#10150)
close #8074 

I attempted to refactor the "input" command. The reason for this is that
the current implementation of the "input" command lacks consistency for
different options. For instance, some parts use `std::io::stdin` while
others use `crossterm::event::read`.

In this pull request, I have made changes to use crossterm consistently:
- Detection of the -u option is now done using `crossterm`'s
`KeyCode::Char`.
- The current input is displayed when using `crossterm` for input (it
won't be displayed when -s is present).
- Ctrl-C triggers SIGINT. 


# User-Facing Changes

Users can interrupt "input" with ctrl-c.
2023-09-02 21:09:26 +02:00
..
ansi Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
input refactor input command (#10150) 2023-09-02 21:09:26 +02:00
clear.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
dir_info.rs Create Record type (#10103) 2023-08-25 07:50:29 +12:00
du.rs Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
kill.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
mod.rs REFACTOR: move the 0% commands to nu-cmd-extra (#9404) 2023-07-06 08:31:31 -07:00
sleep.rs enable/update some example tests so they work again (#10058) 2023-08-19 09:06:59 -05:00
term_size.rs Create Record type (#10103) 2023-08-25 07:50:29 +12:00