Raxol.Terminal.Tooltip (Raxol v2.0.1)
View SourceTooltip display functionality for terminal UI.
This module provides tooltip rendering capabilities for terminal applications, allowing contextual help text to appear on hover or focus.
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Hides the currently displayed tooltip.
Starts the tooltip server.
Shows a tooltip with the given text at the current cursor position.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
@spec hide() :: :ok
Hides the currently displayed tooltip.
Examples
Raxol.Terminal.Tooltip.hide()
Starts the tooltip server.
@spec show(String.t()) :: :ok
Shows a tooltip with the given text at the current cursor position.
Parameters
text- The text to display in the tooltip
Examples
Raxol.Terminal.Tooltip.show("Click to submit")