# fedlist

> Scrollable list selection for shell scripts.
> Displays items in a fixed-size area; outputs selected item to stdout, exit reason to stderr.
> More information: `python3 fedlist.py --help`.

- Select from inline items:

`python3 fedlist.py 0 0 20 5 -i "{{Apple|Banana|Cherry|Date|Fig}}"`

- Load items from a file:

`python3 fedlist.py 2 4 30 10 --items-file {{path/to/items.txt}}`

- Pre-select a value:

`python3 fedlist.py 0 0 20 5 -i "{{Yes|No|Maybe}}" -v "{{No}}"`

- Only ENTER and ESC can exit:

`python3 fedlist.py 0 0 20 5 -i "{{A|B|C}}" -e ENTER,ESC`

- Colored list with custom selection highlight:

`python3 fedlist.py 0 0 20 5 -i "{{Red|Green|Blue}}" --color yellow,blue --select-color bright-white,red`

