You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In render/console/init.py, the height property is currently declared as this:
174 @property
175 def height(self):
176 return self.terminal.width or 24
If I instantiate a new ConsoleRenderer, I can confirm that width and height have the same value.
This is surely problematic for the calls to terminal.location that use this property as the basis for the y axis.
One example of function that does not behave properly because of this is ConsoleRenderer.render_in_bottombar. Currently if I just call the following, I'm not seeing the output at all:
from inquirer.render.console import ConsoleRender
cr = ConsoleRender()
cr.render_in_bottombar("meuh")
once the height property is changed to use terminal.height, the message gets printed on the terminal's second to last line.
The text was updated successfully, but these errors were encountered:
In render/console/init.py, the height property is currently declared as this:
If I instantiate a new ConsoleRenderer, I can confirm that width and height have the same value.
This is surely problematic for the calls to terminal.location that use this property as the basis for the y axis.
One example of function that does not behave properly because of this is ConsoleRenderer.render_in_bottombar. Currently if I just call the following, I'm not seeing the output at all:
once the height property is changed to use terminal.height, the message gets printed on the terminal's second to last line.
The text was updated successfully, but these errors were encountered: