Raxol.Terminal.Scroll.Predictor (Raxol v0.5.0)

View Source

Handles predictive scrolling operations for the terminal.

Summary

Functions

Creates a new predictor instance.

Predicts the next scroll operation based on history.

Types

t()

@type t() :: %Raxol.Terminal.Scroll.Predictor{
  history: [map()],
  window_size: non_neg_integer()
}

Functions

new()

@spec new() :: t()

Creates a new predictor instance.

predict(predictor, direction, lines)

@spec predict(t(), :up | :down, non_neg_integer()) :: t()

Predicts the next scroll operation based on history.