terminal-size

Get terminal window height and width

Version on this page:0.3.0
LTS Haskell 17.11:0.3.2.1
Stackage Nightly 2021-05-15:0.3.2.1
Latest on Hackage:0.3.2.1

See all snapshots terminal-size appears in

BSD-3-Clause licensed by Andreas Hammar, Matvey Aksenov
This version can be pinned in stack with:terminal-size-0.3.0@sha256:13c6cf8d4501c38cb04e03b503cf5c53dffe78be6fe3f37cea2a16d242216d5f,1027

Module documentation for 0.3.0

  • System
    • System.Console
      • System.Console.Terminal
        • System.Console.Terminal.Size
Depends on 1 package(full list with versions):
Used by 1 package in lts-0.7(full list with versions):

terminal-size

Hackage Build Status

Get terminal window width and height

Usage

>>> import System.Console.Terminal.Size
>>> size
Just (Window {height = 60, width = 112})

Changes

0.3.0