Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Add get_term_size to other platforms #11

Description

@RaphGL

Terminal size outside of windows and linux is retrieved by moving the cursor to a ridiculously high coordinate and then asking the terminal to tell us where the cursor ended up. This works as a fallback but ideally we should get this information from the OS.

Missing OS implementations:

  • MacOS
  • FreeBSD
  • NetBSD
  • OpenBSD

This is an non comprehensive list and probably should be an ongoing effort. Personally I don't have any of these operating systems installed so any help would be appreciated!

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions