feat: add terminal default color support in curses initialization
This commit is contained in:
parent
ac52d15766
commit
df1a0d4ad3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue