Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/printer/sixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ fn check_device_attrs() -> ViuResult<bool> {
let mut response = String::new();

while let Ok(key) = term.read_key() {
// exit on first "Unknown" key as we know that this is not a proper response anymore
if key == Key::Unknown {
break;
}

if let Key::Char(c) = key {
response.push(c);
if c == 'c' {
Expand Down