Fixed horrible crash bug with opening vim.
This commit is contained in:
@@ -4,5 +4,5 @@
|
||||
# Fenrir TTY screen reader
|
||||
# By Chrys, Storm Dragon, and contributors.
|
||||
|
||||
version = "2026.05.09.1"
|
||||
version = "2026.05.10"
|
||||
code_name = "testing"
|
||||
|
||||
@@ -52,6 +52,10 @@ class FenrirScreen(pyte.Screen):
|
||||
kwargs.pop("private", None)
|
||||
super(FenrirScreen, self).set_margins(*args, **kwargs)
|
||||
|
||||
def select_graphic_rendition(self, *args, **kwargs):
|
||||
kwargs.pop("private", None)
|
||||
super(FenrirScreen, self).select_graphic_rendition(*args, **kwargs)
|
||||
|
||||
|
||||
class Terminal:
|
||||
def __init__(self, columns, lines, p_in, env=None):
|
||||
|
||||
@@ -24,6 +24,16 @@ def test_csi_sequences_with_intermediate_characters_do_not_render_final_byte():
|
||||
assert "p" not in screen["text"]
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_private_sgr_sequence_from_fullscreen_apps_does_not_crash():
|
||||
terminal = Terminal(10, 3, DummyProcessInput())
|
||||
|
||||
terminal.feed(b"\x1b[?25;7mX")
|
||||
screen = terminal.get_screen_content()
|
||||
|
||||
assert screen["text"].splitlines()[0] == "X "
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_optional_float_setting_uses_default_when_missing():
|
||||
settings_manager = type(
|
||||
|
||||
Reference in New Issue
Block a user