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