> For the complete documentation index, see [llms.txt](https://aptivi.gitbook.io/stable/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aptivi.gitbook.io/stable/terminaux-6.x-manual/usage/input-reader/other-input/spinner-selector.md).

# Spinner Selector

<figure><img src="/files/GehGBqPGwAM7Hx64WkQU" alt=""><figcaption></figcaption></figure>

Terminaux provides a selector that allows you to choose a spinner in an interactive way with live previews, powered by the [textual UI](/stable/terminaux-6.x-manual/usage/console-tools/textual-ui.md) feature. This feature can be found in the `SpinnerSelector` class found in the `Terminaux.Inputs.Styles` namespace, and you can run it with the following functions:

* `PromptForSpinner()`
* `PromptForSpinner(string spinner)`

The first overload automatically falls back to the `Dots` built-in spinner, while the second overload allows you to specify the name of a built-in spinner. You can get a list of built-in spinner names defined in the `BuiltinSpinners` class.

{% hint style="warning" %}
You can't use custom spinners, as they are not considered to be built-in.
{% endhint %}

Once the user end submitted their selection, the two functions will return a `Spinner` instance obtained from the built-in spinner instance list, which can be rendered immediately using a function described [here](/stable/terminaux-6.x-manual/usage/console-tools/console-writers/cyclic-writers.md).

## Controls

The below keybindings can be used to control the selector:

<table><thead><tr><th width="285">Keybinding</th><th>Action</th></tr></thead><tbody><tr><td><code>Left arrow</code> (wheel up)</td><td>Previous spinner</td></tr><tr><td><code>Right arrow</code> (wheel down)</td><td>Next spinner</td></tr><tr><td><code>Enter</code></td><td>Submits your selection</td></tr><tr><td><code>Escape</code></td><td>Cancels your selection and returns the initial spinner</td></tr><tr><td><code>H</code></td><td>Help page</td></tr><tr><td><code>S</code></td><td>Select a spinner from the list</td></tr><tr><td><code>Shift + S</code></td><td>Select a spinner by writing its name</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://aptivi.gitbook.io/stable/terminaux-6.x-manual/usage/input-reader/other-input/spinner-selector.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
