mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
ui/curses: add curses interface draft
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from .base import WindowWrapper
|
||||
|
||||
|
||||
class Label(WindowWrapper):
|
||||
def set_text(self, text: str) -> None:
|
||||
if not self._win:
|
||||
return
|
||||
self._win.erase()
|
||||
self._win.addnstr(text, min(len(text), self.getmaxyx()[1] - 1))
|
||||
self._win.refresh()
|
||||
Reference in New Issue
Block a user