Skip to content

Commit

Permalink
check terminal size
Browse files Browse the repository at this point in the history
  • Loading branch information
volkerp committed Nov 2, 2018
1 parent 29d1eb9 commit 2e897ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zfstui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import curses.panel


MAINMENU = ['[F2] Pools', '[F3] Volumes', '[F4] Filesystems', '[F5] Snapshots', '[F10] Quit']
MAINMENU = ['[F2]Pools', '[F3]Volumes', '[F4]Filesysts', '[F5]Snapshots', '[F10]Quit']
MAINMENU_POOLS = 0
MAINMENU_VOLS = 1
MAINMENU_FSYS = 2
Expand Down Expand Up @@ -45,7 +45,8 @@ def draw(self):
self.window.addstr(entry, curses.A_REVERSE)
else:
self.window.addstr(entry, curses.A_NORMAL)
self.window.addstr(' ', curses.A_NORMAL)
if i != len(MAINMENU) - 1:
self.window.addstr(' ', curses.A_NORMAL)
self.window.refresh()


Expand Down

0 comments on commit 2e897ff

Please sign in to comment.