terminfo-0.3.1: Haskell bindings to the terminfo library.

Portabilityportable (FFI)
Stabilityexperimental
Maintainerjudah.jacobson@gmail.com

System.Console.Terminfo.Effects

Contents

Description

 

Synopsis

Bell alerts

bell :: TermStr s => Capability sSource

Sound the audible bell.

visualBell :: Capability TermOutputSource

Present a visual alert using the flash capability.

Text attributes

defaultAttributes :: AttributesSource

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 sSource

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