Adds client_height() method to Command.
This commit is contained in:
parent
fa96fea5b4
commit
1f8f99a580
1 changed files with 14 additions and 0 deletions
|
|
@ -510,6 +510,20 @@ Command {self} has no defined `func()` - showing on-command variables:
|
||||||
)[0]
|
)[0]
|
||||||
return settings.CLIENT_DEFAULT_WIDTH
|
return settings.CLIENT_DEFAULT_WIDTH
|
||||||
|
|
||||||
|
def client_height(self):
|
||||||
|
"""
|
||||||
|
Get the client screenheight for the session using this command.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
client height (int): The height (in characters) of the client window.
|
||||||
|
|
||||||
|
"""
|
||||||
|
if self.session:
|
||||||
|
return self.session.protocol_flags.get(
|
||||||
|
"SCREENHEIGHT", {0: settings.CLIENT_DEFAULT_HEIGHT}
|
||||||
|
)[0]
|
||||||
|
return settings.CLIENT_DEFAULT_HEIGHT
|
||||||
|
|
||||||
def styled_table(self, *args, **kwargs):
|
def styled_table(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Create an EvTable styled by on user preferences.
|
Create an EvTable styled by on user preferences.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue