Skip to content

Commit 808df45

Browse files
Fix TypeError in select_graphic_rendition
- Add **kwargs parameter to select_graphic_rendition() method signature - Handle private=True parameter by returning early (no-op for private SGR sequences)
1 parent 9a03817 commit 808df45

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎pyte/screens.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,11 +971,14 @@ def alignment_display(self) -> None:
971971
for x in range(self.columns):
972972
self.buffer[y][x] = self.buffer[y][x]._replace(data="E")
973973

974-
def select_graphic_rendition(self, *attrs: int) -> None:
974+
def select_graphic_rendition(self, *attrs: int, **kwargs: Any) -> None:
975975
"""Set display attributes.
976976
977977
:param list attrs: a list of display attributes to set.
978978
"""
979+
if kwargs.get("private"):
980+
return
981+
979982
replace = {}
980983

981984
# Fast path for resetting all attributes.

0 commit comments

Comments
 (0)