Skip to content

termios.tcget/setwinsize #5108

Closed
Closed

Description

@cfbolz

Activity

  1. added this to the Python 3.11 milestone on Nov 10, 2024
  2. mattip commented on Nov 11, 2024

    @mattip
    Member

    There is already os.get_terminal_size and shutil.get_terminal_size. The PR that added the new functions did not relate to the other ones. I guess we can just repeat the get code in module/termios too. We will need to add the set code.

  3. mattip commented on Nov 11, 2024

    @mattip
    Member

    The CPython code supports first winsize but if that is not available falls back to ttysize. According to this stackoverflow ttysize is obsolete.

  4. mattip commented on Nov 11, 2024

    @mattip
    Member

    Done in b9505e7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions