Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions dtop/views/log_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,7 @@ def show_logs(tui, stdscr, container):
just_processed_search = False
just_processed_filter = False

# Initial draw of screen
stdscr.refresh()
pad.refresh(pos, h_scroll, 2, 0, h-2, w-2)
# Initial draw is handled after header/footer are rendered

# Reduce refresh rate to avoid flashing
draw_interval = 0.3 # seconds between screen refreshes
Expand Down Expand Up @@ -1091,7 +1089,11 @@ def show_logs(tui, stdscr, container):
stdscr.attron(curses.color_pair(6))
safe_addstr(stdscr, h-1, 0, footer_text + " " * (w - len(footer_text)), curses.color_pair(6))
stdscr.attroff(curses.color_pair(6))


# Display logs initially
pad.refresh(pos, h_scroll, 2, 0, h-2, w-2)
stdscr.refresh()

while running:
# Clear the skip_normal_input flag at the start of each iteration
if just_processed_search or just_processed_filter:
Expand Down