terminfo-0.1: Haskell bindings to the terminfo library.

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

System.Console.Terminfo.Cursor

Contents

Description

| This module provides capabilities for moving the cursor on the terminal. -}

Synopsis

Terminal dimensions

Get the default size of the terminal. For resizeable terminals (e.g., xterm), these may not correspond to the actual dimensions.

Scrolling

carriageReturn :: Capability TermOutputSource

The cr capability, which moves the cursor to the first column of the current line.

newline :: Capability TermOutputSource

The nel capability, which moves the cursor to the first column of the next line. It behaves like a carriage return followed by a line feed.

If nel is not defined, this may be built out of other capabilities.

Relative cursor movements

The following functions for cursor movement will combine the more primitive capabilities. For example, moveDown may use either cursorDown or cursorDown1 depending on the parameter and which of cud and cud1 are defined.

Primitive movement capabilities

These capabilities correspond directly to cub, cud, cub1, cud1, etc.

Absolute cursor movements

data Point Source

Constructors

Point 

Fields

row :: Int
 
col :: Int