Added alt screen mode check

This commit is contained in:
Mikayla Maki 2022-08-16 23:10:49 -07:00
parent bf7b3150e4
commit 5ad746e53f

View file

@ -138,7 +138,14 @@ impl ConnectedView {
}
fn show_character_palette(&mut self, _: &ShowCharacterPalette, cx: &mut ViewContext<Self>) {
cx.show_character_palette();
if self
.terminal
.read(cx)
.last_mode
.contains(TermMode::ALT_SCREEN)
{
cx.show_character_palette();
}
}
fn clear(&mut self, _: &Clear, cx: &mut ViewContext<Self>) {