Slightly cover bootstrap, to increase more and more coverage. Ensure that there is no associated shell

This commit is contained in:
Yohann D'ANELLO
2020-11-10 21:32:10 +01:00
parent e9ac448854
commit 7173d13495
2 changed files with 14 additions and 11 deletions

View File

@ -27,10 +27,9 @@ class MenuDisplay(Display):
self.pad.addstr(self.menu.position, 0, ">")
def display(self) -> None:
if self.height - 2 >= self.menu.position - 1:
cornery = 0
elif self.height - 2 >= self.trueheight - self.menu.position:
cornery = self.trueheight - self.height + 2
cornery = 0 if self.height - 2 >= self.menu.position - 1 \
else self.trueheight - self.height + 2 \
if self.height - 2 >= self.trueheight - self.menu.position else 0
# Menu box
self.menubox.addstr(0, 0, "" + "" * (self.width - 2) + "")