posssible speedup of screenshots

This commit is contained in:
Will McGugan
2022-10-29 21:14:01 +01:00
parent c5b2e6982e
commit dcbe88833f
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ def format_svg(source, language, css_class, options, md, attrs, **kwargs) -> str
def take_svg_screenshot(
app: App | None = None,
app_path: str | None = None,
press: Iterable[str] = ("_",),
press: Iterable[str] = (),
title: str | None = None,
terminal_size: tuple[int, int] = (80, 24),
) -> str:

View File

@@ -35,7 +35,8 @@ class Pilot:
*key: Keys to press.
"""
await self._app._press_keys(keys)
if keys:
await self._app._press_keys(keys)
async def pause(self, delay: float = 50 / 1000) -> None:
"""Insert a pause.