The cursor is now always to the bottom right with fancy display.
This commit is contained in:
parent
49fc0f6a4f
commit
2ab53c8116
|
@ -71,6 +71,7 @@ class Screen:
|
|||
class Pad(Screen):
|
||||
def refresh(self, x=1, y=1, width=21, height=7, ask_for_input=True,\
|
||||
endl="\n", fancy=True):
|
||||
ogwidth = width
|
||||
if width > self._width:
|
||||
width = self._width
|
||||
if height > self._height:
|
||||
|
@ -94,7 +95,7 @@ class Pad(Screen):
|
|||
to_print = to_print[:-1]
|
||||
print(to_print[:-width], end="")
|
||||
if ask_for_input or fancy:
|
||||
return input(to_print[-width:-1] if fancy else "> ")
|
||||
return input(to_print[-width:-1]+ " " * (ogwidth - width) if fancy else "> ")
|
||||
else:
|
||||
print(to_print[-width:], end=endl)
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue