W3cubDocs

/Haskell 7

System.Console.Terminfo.Effects

Maintainer [email protected]
Stability experimental
Portability portable (FFI)
Safe Haskell Safe
Language Haskell2010

Description

Bell alerts

bell :: TermStr s => Capability s Source

Sound the audible bell.

visualBell :: Capability TermOutput Source

Present a visual alert using the flash capability.

Text attributes

data Attributes Source

defaultAttributes :: Attributes Source

These attributes have all properties turned off.

withAttributes :: TermStr s => Capability (Attributes -> s -> s) Source

Sets the attributes on or off before outputting the given text, and then turns them all off. This capability will always succeed; properties which cannot be set in the current terminal will be ignored.

setAttributes :: TermStr s => Capability (Attributes -> s) Source

Sets the attributes on or off. This capability will always succeed; properties which cannot be set in the current terminal will be ignored.

allAttributesOff :: TermStr s => Capability s Source

Turns off all text attributes. This capability will always succeed, but it has no effect in terminals which do not support text attributes.

Mode wrappers

withStandout :: TermStr s => Capability (s -> s) Source

Turns on standout mode before outputting the given text, and then turns it off.

withUnderline :: TermStr s => Capability (s -> s) Source

Turns on underline mode before outputting the given text, and then turns it off.

withBold :: TermStr s => Capability (s -> s) Source

Turns on bold mode before outputting the given text, and then turns all attributes off.

Low-level capabilities

enterStandoutMode :: TermStr s => Capability s Source

exitStandoutMode :: TermStr s => Capability s Source

enterUnderlineMode :: TermStr s => Capability s Source

exitUnderlineMode :: TermStr s => Capability s Source

reverseOn :: TermStr s => Capability s Source

blinkOn :: TermStr s => Capability s Source

boldOn :: TermStr s => Capability s Source

dimOn :: TermStr s => Capability s Source

invisibleOn :: TermStr s => Capability s Source

protectedOn :: TermStr s => Capability s Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/7.10.3/docs/html/libraries/terminfo-0.4.0.1/System-Console-Terminfo-Effects.html