feat: add terminal default color support in curses initialization

This commit is contained in:
n loewen (aider) 2025-05-05 09:11:17 +01:00
parent ac52d15766
commit df1a0d4ad3
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ def main(stdscr, filename):
curses.mousemask(curses.ALL_MOUSE_EVENTS)
curses.mouseinterval(0)
stdscr.keypad(True)
# Initialize colors if terminal supports them
if curses.has_colors():
curses.use_default_colors() # Use terminal's default colors
commits = get_commits(filename)
selected_commit = 0