aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-07-06 13:49:55 -0400
committerJesse Luehrs <doy@tozt.net>2019-07-06 13:49:55 -0400
commitc81eb633fc071e3eb306f5154c847dd3a41933e6 (patch)
tree03a91f51b22680917692dcf60b78810bcedc9059
parent08a6e6448e330a85e7eaee99a13a31be41db21b6 (diff)
downloadnbsh-old-c81eb633fc071e3eb306f5154c847dd3a41933e6.tar.gz
nbsh-old-c81eb633fc071e3eb306f5154c847dd3a41933e6.zip
don't allow tabs for now
the literal tab character requires extra support when backspacing, and i don't think we want to ever insert a literal tab character anyway (since we eventually want tab completion)
-rw-r--r--src/readline.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/readline.rs b/src/readline.rs
index 699d068..a8c1526 100644
--- a/src/readline.rs
+++ b/src/readline.rs
@@ -99,6 +99,9 @@ impl ReadlineState {
self.echo_char('\n').context(WriteToTerminal)?;
return Ok(futures::Async::Ready(self.buffer.clone()));
}
+ crossterm::KeyEvent::Char('\t') => {
+ // TODO
+ }
crossterm::KeyEvent::Char(c) => {
if self.cursor != self.buffer.len() {
self.echo(b"\x1b[@").context(WriteToTerminal)?;