src/pylib/Lib/os_impl/term

Search:
Group by:
Source   Edit  

Types

terminal_size = tuple[columns, lines: int]
a namedtuple instead of a class Source   Edit  

Procs

proc get_terminal_size(fd = STDOUT_FILENO): terminal_size {....raises: [],
    tags: [], forbids: [].}

minics Python's os.get_terminal_size.

but if you are using Nim's stdlib, terminalSize<https://nim-lang.org/docs/terminal.html#terminalSize> in std/terminal does futher than even Python's shutil.get_terminal_size

Source   Edit