fix: set raw mode if hold option is set

This is to disable local echo
This commit is contained in:
mgpinf authored and Wez Furlong committed 2025-05-11 09:54:57 -07:00
1 parent f2ac5c5e4c
commit 5cab87d42e
1 file changed
+1
+1
View File
@@ -587,6 +587,7 @@ impl ImgCatCommand {
}
if self.hold {
term.set_raw_mode()?;
while let Ok(Some(event)) = term.poll_input(None) {
match event {
InputEvent::Key(KeyEvent {