Skip to content

Commit

Permalink
Flush screen output before carriage return
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jan 20, 2022
1 parent 4b29ae0 commit 391f60d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

0.5.6 (01/19/2022)
------------------
- Flush screen output before carriage return

0.5.5 (01/19/2022)
------------------
- Take optional args to delete vpn server
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version_info = (0, 5, 5)
version_info = (0, 5, 6)
1 change: 1 addition & 0 deletions vpn/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def _sleeper(self, sleep_time: int) -> None:
for i in range(sleep_time):
stdout.write(f'\rRemaining: {sleep_time - i:0{len(str(sleep_time))}}s')
sleep(1)
stdout.flush()
stdout.write('\r')

def _create_key_pair(self) -> bool:
Expand Down

0 comments on commit 391f60d

Please sign in to comment.