Skip to content

Commit

Permalink
Merge pull request Datalux#263 from fearfulspoon/master
Browse files Browse the repository at this point in the history
Add is_windows check to main loop.
  • Loading branch information
Datalux authored Jul 5, 2021
2 parents c7948b7 + 74e3e1e commit 10ee6c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,12 @@ def _quit():
_cmd = commands.get(args.command)
else:
signal.signal(signal.SIGINT, signal_handler)
gnureadline.parse_and_bind("tab: complete")
gnureadline.set_completer(completer)
if is_windows:
pyreadline.Readline().parse_and_bind("tab: complete")
pyreadline.Readline().set_completer(completer)
else:
gnureadline.parse_and_bind("tab: complete")
gnureadline.set_completer(completer)
pc.printout("Run a command: ", pc.YELLOW)
cmd = input()

Expand Down

0 comments on commit 10ee6c8

Please sign in to comment.