Anansi v0.0.1 Anansi.Pager

ANSI escape codes that manipulate the terminal pager.

Summary

Functions

Scrolls screen down 1 line

Scrolls screen by instruction

Scrolls screen direction by amount

Functions

scroll()

Scrolls screen down 1 line.

scroll(instruction)

Scrolls screen by instruction.

If an integer is given, scrolls down by that amount. If direction :up/:down is given, scrolls in that direction by 1.

Alternatively, the instruction can be a keyword list of directions and amounts to scroll via scroll/2.

scroll(direction, amount)

Scrolls screen direction by amount.