Also report window sizes in kitty @ ls

This commit is contained in:
Kovid Goyal 2021-04-17 11:49:57 +05:30
parent 6179cfc670
commit cf0b2389a3
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -57,6 +57,8 @@ class WindowDict(TypedDict):
env: Dict[str, str]
foreground_processes: List[ProcessDesc]
is_self: bool
lines: int
columns: int
class PipeData(TypedDict):
@ -391,7 +393,9 @@ def as_dict(self, is_focused: bool = False, is_self: bool = False) -> WindowDict
cmdline=self.child.cmdline,
env=self.child.environ,
foreground_processes=self.child.foreground_processes,
is_self=is_self
is_self=is_self,
lines=self.screen.lines,
columns=self.screen.columns,
)
def serialize_state(self) -> Dict[str, Any]: