mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 15:52:39 -07:00
I love git lol
This commit is contained in:
parent
76f6afb39e
commit
c899711e69
|
|
@ -4175,7 +4175,12 @@ def wrap(txt: str, maxlen: int, maxlen2: int) -> list[str]:
|
|||
|
||||
|
||||
def termsize() -> tuple[int, int]:
|
||||
# from hashwalk
|
||||
try:
|
||||
w, h = os.get_terminal_size()
|
||||
return w, h
|
||||
except:
|
||||
pass
|
||||
|
||||
env = os.environ
|
||||
|
||||
def ioctl_GWINSZ(fd: int) -> Optional[tuple[int, int]]:
|
||||
|
|
@ -4442,4 +4447,4 @@ __all__ = [
|
|||
"JINJA_VER",
|
||||
"PYFTPD_VER",
|
||||
"PARTFTPY_VER",
|
||||
]
|
||||
]
|
||||
Loading…
Reference in a new issue