Skip to content

Commit

Permalink
Corrected command line colors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStarc committed Dec 30, 2020
1 parent 11c7c99 commit 95217e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions com/alexstarc/dpad/dpad_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@


def main(screen):
curses.use_default_colors()
for i in range(0, curses.COLORS):
curses.init_pair(i, i, -1)
curses.curs_set(1)
curses.noecho()

Expand All @@ -19,6 +22,7 @@ def main(screen):
curses.echo()
if c == 113:
screen.addstr('Abort!\n')
time.sleep(1)
break
if c == 114:
screen.addstr('Restart adb\n')
Expand Down

0 comments on commit 95217e8

Please sign in to comment.