← All packages

terminal-size0.3.4

Get terminal window height and width

Open the imported Cabal file ↗

author
Andreas Hammar, Matvey Aksenov
build-type
Simple
cabal-version
>= 1.10
category
System
extra-source-files
README.markdown CHANGELOG.markdown
license
BSD3
license-file
LICENSE
maintainer
matvey.aksenov@gmail.com
name
terminal-size
synopsis
Get terminal window height and width
version
0.3.4
x-revision
1
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "terminal-size",
  "version": "0.3.4",
  "cabalVersion": "1.10",
  "buildType": "Simple",
  "fields": {
    "author": [
      "Andreas Hammar, Matvey Aksenov"
    ],
    "build-type": [
      "Simple"
    ],
    "cabal-version": [
      ">= 1.10"
    ],
    "category": [
      "System"
    ],
    "description": [
      "Get terminal window height and width without ncurses dependency."
    ],
    "extra-source-files": [
      "README.markdown\nCHANGELOG.markdown"
    ],
    "license": [
      "BSD3"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "matvey.aksenov@gmail.com"
    ],
    "name": [
      "terminal-size"
    ],
    "synopsis": [
      "Get terminal window height and width"
    ],
    "version": [
      "0.3.4"
    ],
    "x-revision": [
      "1"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "System.Console.Terminal.Size"
          ],
          "otherModules": [
            "System.Console.Terminal.Common"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4 && <5",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": [
          {
            "condition": {
              "compiler": "ghc",
              "range": ">=7.2 && <7.6"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "ghc-prim",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "process",
                    "range": "-any",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "Win32",
                    "range": ">=2.13.2.0 && <2.15",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "os": "windows"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [
                  "System.Console.Terminal.Windows"
                ],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [
                  "System.Console.Terminal.Posix"
                ],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            }
          }
        ]
      }
    }
  ],
  "setupDependencies": [],
  "flags": [],
  "sourceRepositories": [
    {
      "kind": "head",
      "fields": {
        "location": [
          "https://github.com/biegunka/terminal-size"
        ],
        "type": [
          "git"
        ]
      }
    },
    {
      "kind": "this",
      "fields": {
        "location": [
          "https://github.com/biegunka/terminal-size"
        ],
        "tag": [
          "0.3.4"
        ],
        "type": [
          "git"
        ]
      }
    }
  ],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/terminal-size-0.3.4/terminal-size.cabal",
  "sha256": "21d7f1320eeb86177e860ec07a3d8e7510977b1b415a96ebb62ee4ad72955770",
  "importedAt": "2026-10-14T12:42:46.281Z",
  "dependencies": [
    {
      "package": "base",
      "range": ">=4 && <5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "ghc-prim",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "compiler": "ghc",
          "range": ">=7.2 && <7.6"
        }
      ]
    },
    {
      "package": "process",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    },
    {
      "package": "Win32",
      "range": ">=2.13.2.0 && <2.15",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "os": "windows"
        }
      ]
    }
  ],
  "exposedModules": [
    "System.Console.Terminal.Size"
  ],
  "documents": {
    "readme": {
      "status": "available",
      "sha256": "3052dbd70e572782a9f3150fa6f6812447c1e0d813175441ef4dface5635b7d0",
      "error": null,
      "checkedAt": "2026-10-14T12:42:47.142Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "d6adcadc3bfa406e2718dadd89b5ba80677cd85c33c4594f1d79dcc6e4633fbc",
      "error": null,
      "checkedAt": "2026-10-14T12:42:47.146Z"
    }
  },
  "documentation": null,
  "versions": [
    {
      "version": "0.3.4",
      "imported_at": "2026-10-14T12:42:46.281Z"
    }
  ]
}

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.