remove ncurses from the output of the show_info function

This is currently necessary because the output is broken in ncurses. It always
cuts the first letter of every line when displayed in curses.
This commit is contained in:
Andreas Zweili 2016-12-16 22:42:42 +01:00
parent 1a6d03a432
commit 4203137321
1 changed files with 2 additions and 5 deletions

View File

@ -45,12 +45,9 @@ def show_info():
archive_name = get_param("Please enter the archive name: ").decode('utf-8')
curses.endwin()
os.system('clear')
p = subprocess.Popen(['borg', 'info', '::' + archive_name],
stdout=subprocess.PIPE)
p = subprocess.Popen(['borg', 'info', '::' + archive_name])
p.wait()
info_output = p.communicate()[0]
draw_screen(2, 2, info_output)
ncurses_pause(20)
pause()
def mount_archive():
archive_name = get_param("Please enter the archive name: ").decode('utf-8')