diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs index 84fbb768..b2fdf4f8 100644 --- a/zellij-server/src/screen.rs +++ b/zellij-server/src/screen.rs @@ -1118,7 +1118,7 @@ impl Screen { }, c => { // It only allows printable unicode - if buf.iter().all(|u| matches!(u, 0x20..=0x7E)) { + if buf.iter().all(|u| matches!(u, 0x20..=0x7E | 0xA0..=0xFF)) { active_tab.name.push_str(c); } }, diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index 98555654..093237ea 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -2680,7 +2680,9 @@ impl Tab { .with_context(err_context)?; // It only allows printable unicode, delete and backspace keys. - let is_updatable = buf.iter().all(|u| matches!(u, 0x20..=0x7E | 0x08 | 0x7F)); + let is_updatable = buf + .iter() + .all(|u| matches!(u, 0x20..=0x7E | 0xA0..=0xFF | 0x08 | 0x7F)); if is_updatable { let s = str::from_utf8(&buf).with_context(err_context)?; active_terminal.update_name(s);