euporie.core.key_binding.bindings.mouse

Key bindings to deal with pixel mouse positioning.

Functions

NamedTuple(typename[, fields])

Typed version of namedtuple.

load_mouse_bindings()

Additional key-bindings to deal with SGR-pixel mouse positioning.

load_ptk_mouse_bindings()

Key bindings, required for mouse support.

Classes

BaseApp([title, set_title, leave_graphics, ...])

All euporie apps.

FastDictCache(get_value[, size])

Fast, lightweight cache which keeps at most size items.

KeyBindings()

A container for a set of key bindings.

Keys(value[, names, module, qualname, type, ...])

List of keys for use in key bindings.

MouseButton(value[, names, module, ...])

MouseEvent(position, event_type, button, ...)

Mouse event, which also store relative position of the mouse event in a cell.

MouseEventType(value[, names, module, ...])

MouseModifier(value[, names, module, ...])

Point(x, y)

PtkMouseEvent

alias of MouseEvent

RelativePosition(x, y)

Store the relative position or the mouse within a terminal cell.

Exceptions

HeightIsUnknownError

Information unavailable.

class euporie.core.key_binding.bindings.mouse.MouseEvent(position: Point, event_type: MouseEventType, button: MouseButton, modifiers: frozenset[prompt_toolkit.mouse_events.MouseModifier], cell_position: euporie.core.key_binding.bindings.mouse.RelativePosition | None)

Bases: MouseEvent

Mouse event, which also store relative position of the mouse event in a cell.

class euporie.core.key_binding.bindings.mouse.RelativePosition(x: float, y: float)

Bases: NamedTuple

Store the relative position or the mouse within a terminal cell.

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

x: float

Alias for field number 0

y: float

Alias for field number 1

euporie.core.key_binding.bindings.mouse.load_mouse_bindings() KeyBindings

Additional key-bindings to deal with SGR-pixel mouse positioning.