mirror of https://github.com/aristocratos/bpytop
Fixed title leading whitespace
parent
45b103adb1
commit
1d7688820c
|
@ -613,8 +613,10 @@ class Term:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def title(text: str = "") -> str:
|
def title(text: str = "") -> str:
|
||||||
if text: text = f' {text}'
|
out: str = f'{os.environ.get("TERMINAL_TITLE", "")}'
|
||||||
return f'\033]0;{os.environ.get("TERMINAL_TITLE", "")}{text}\a'
|
if out and text: out += " "
|
||||||
|
if text: out += f'{text}'
|
||||||
|
return f'\033]0;{out}\a'
|
||||||
|
|
||||||
class Fx:
|
class Fx:
|
||||||
"""Text effects
|
"""Text effects
|
||||||
|
|
Loading…
Reference in New Issue