mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Use a pending update when drawing the screen
This commit is contained in:
@@ -10,10 +10,12 @@ from typing import (
|
||||
|
||||
from kitty.types import ParsedShortcut
|
||||
from kitty.typing import (
|
||||
AbstractEventLoop, BossType, Debug, ImageManagerType, KeyEventType,
|
||||
KeyActionType, LoopType, MouseEvent, ScreenSize, TermManagerType
|
||||
AbstractEventLoop, BossType, Debug, ImageManagerType, KeyActionType,
|
||||
KeyEventType, LoopType, MouseEvent, ScreenSize, TermManagerType
|
||||
)
|
||||
|
||||
from .operations import pending_update
|
||||
|
||||
|
||||
class Handler:
|
||||
|
||||
@@ -134,6 +136,9 @@ class Handler:
|
||||
def suspend(self) -> ContextManager[TermManagerType]:
|
||||
return self._term_manager.suspend()
|
||||
|
||||
def pending_update(self) -> ContextManager[None]:
|
||||
return pending_update(self.write)
|
||||
|
||||
|
||||
class HandleResult:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user