Handle nested buffering better

This commit is contained in:
Bruce Hill 2025-02-24 14:43:59 -05:00
parent c26b6eac57
commit 2edced7ad0

View File

@ -196,9 +196,10 @@ class BTUI:
@contextmanager
def buffered(self):
assert self._btui
prev_autoflush = self._autoflush
self._autoflush = False
yield
self._autoflush = True
self._autoflush = prev_autoflush
self.flush()
def getkey(self, timeout=None):