1
0
forked from iarv/contact

update lines and cols

This commit is contained in:
pdxlocations
2025-07-28 23:03:25 -07:00
parent 12d98ca999
commit 415d2bbda5
2 changed files with 3 additions and 1 deletions

View File

@@ -3,7 +3,9 @@ from contact.ui.colors import get_color
def dialog(title: str, message: str) -> None:
"""Display a dialog with a title and message."""
curses.update_lines_cols()
height, width = curses.LINES, curses.COLS
# Calculate dialog dimensions

View File

@@ -24,12 +24,12 @@ class ChatUIState:
selected_message: int = 0
selected_node: int = 0
current_window: int = 0
last_sent_time: float = 0.0
selected_index: int = 0
start_index: List[int] = field(default_factory=lambda: [0, 0, 0])
show_save_option: bool = False
menu_path: List[str] = field(default_factory=list)
last_sent_time: float = 0.0
@dataclass