nushell/crates/nu-command/src
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
..
bytes Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
charting Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
conversions Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
database Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
date Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
debug Fix #10154 (#10162) 2023-08-31 08:43:27 -05:00
env Create Record type (#10103) 2023-08-25 07:50:29 +12:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
filters Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
formats feat: allow from csv to accept 4 byte unicode separator chars (#10138) 2023-08-31 18:55:39 +02:00
generators Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
hash Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
help Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
math Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
misc REFACTOR: move source out of deprecated commands (#9060) 2023-05-04 00:02:03 +02:00
network Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
path Allow parse-time evaluation of calls, pipelines and subexpressions (#9499) 2023-08-26 16:41:29 +03:00
platform refactor input command (#10150) 2023-09-02 21:09:26 +02:00
random Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
removed Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
shells Fix usage for the exit command. (#9450) 2023-06-16 10:09:02 +02:00
strings Allow parse-time evaluation of calls, pipelines and subexpressions (#9499) 2023-08-26 16:41:29 +03:00
system Move eval_hook to nu-cmd-base (#10146) 2023-08-29 23:46:50 +02:00
viewers Update removed "MDI" icons to current MD icons (#10126) 2023-08-27 15:48:37 +02:00
default_context.rs move 'bytes' back to commands (#10051) 2023-08-19 22:43:53 +02:00
example_test.rs enable/update some example tests so they work again (#10058) 2023-08-19 09:06:59 -05:00
lib.rs Move eval_hook to nu-cmd-base (#10146) 2023-08-29 23:46:50 +02:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Create Record type (#10103) 2023-08-25 07:50:29 +12:00