Skip to content

shutil.get_terminal_size() returns 0 when run in a pty #86340

@The-Compiler

Description

@The-Compiler
BPO 42174
Nosy @giampaolo, @tarekziade, @ambv, @The-Compiler, @jack1142, @FFY00
PRs
  • bpo-42174: fallback to sane values if the columns or lines are 0 in get_terminal_size #29046
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-10-19.18:48:53.526>
    created_at = <Date 2020-10-27.16:32:31.273>
    labels = ['type-bug', 'library', '3.11']
    title = 'shutil.get_terminal_size() returns 0 when run in a pty'
    updated_at = <Date 2021-10-19.18:48:53.526>
    user = 'https://github.com/The-Compiler'

    bugs.python.org fields:

    activity = <Date 2021-10-19.18:48:53.526>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-19.18:48:53.526>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2020-10-27.16:32:31.273>
    creator = 'The Compiler'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42174
    keywords = ['patch']
    message_count = 5.0
    messages = ['379773', '380224', '404329', '404331', '404332']
    nosy_count = 6.0
    nosy_names = ['giampaolo.rodola', 'tarek', 'lukasz.langa', 'The Compiler', 'jack1142', 'FFY00']
    pr_nums = ['29046']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42174'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions