From 82f965e1a2d506cbbaa016b1e5cc559f18b156cb Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Wed, 4 Sep 2024 19:09:02 -0700 Subject: [PATCH] fix: Send correct ASCII DEL character to PTY, rather than ASCII BS --- src/running_command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/running_command.rs b/src/running_command.rs index 55cc8e79..f5041ee4 100644 --- a/src/running_command.rs +++ b/src/running_command.rs @@ -270,7 +270,7 @@ impl RunningCommand { send } KeyCode::Enter => vec![b'\n'], - KeyCode::Backspace => vec![8], + KeyCode::Backspace => vec![0x7f], KeyCode::Left => vec![27, 91, 68], KeyCode::Right => vec![27, 91, 67], KeyCode::Up => vec![27, 91, 65],