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

@ -20,6 +20,10 @@ def main(stdscr, filename):
curses.mouseinterval(0) curses.mouseinterval(0)
stdscr.keypad(True) 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) commits = get_commits(filename)
selected_commit = 0 selected_commit = 0
divider_col = 40 divider_col = 40