Metadata-Version: 2.4
Name: firefly-meadow
Version: 0.1.1
Summary: A terminal ASCII firefly meadow. Wave your mouse, leave a rainbow trail.
Author: Rahul Bantupalli
License-Expression: MIT
Keywords: terminal,ascii,game,fireflies,iterm,toy
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Environment :: Console
Classifier: Topic :: Games/Entertainment
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Firefly Meadow

Firefly Meadow is a small interactive ASCII animation for your terminal. Move your mouse to rustle the grass and leave a trail of glowing fireflies; click to create a burst.

## Requirements

- Python 3.9 or newer
- macOS, Linux, or Windows running WSL
- An interactive terminal that supports 24-bit truecolor and SGR mouse reporting

There are no third-party Python dependencies. Native Windows terminals are not supported because the program uses POSIX terminal features.

## Install

Install the package with pip:

```bash
python -m pip install firefly-meadow
```

If your system uses `python3` for Python 3, run:

```bash
python3 -m pip install firefly-meadow
```

## Run

After installation, start the game from an interactive terminal:

```bash
fireflies
```

You can also run it in a temporary environment without installing it into your current Python environment:

```bash
pipx run --spec firefly-meadow fireflies
```

Or, if you use uv:

```bash
uvx --from firefly-meadow fireflies
```

## Controls

| Input | Action |
| --- | --- |
| Move the mouse | Disturb the grass and leave a firefly trail |
| Left click | Create a burst of fireflies |
| `c` | Clear the fireflies and disturbed grass |
| `q` or `Ctrl-C` | Quit |

## Troubleshooting

- **`fireflies: command not found`:** Make sure the Python environment where you installed the package is active. You can also try `python -m pip install --user firefly-meadow`, then open a new terminal. On macOS and Linux, check that Python's scripts directory is on your `PATH`.
- **The mouse does nothing:** Your terminal must support SGR mouse reporting. In iTerm2, enable **Preferences → Profiles → Terminal → Report mouse clicks and drags**. In tmux, enable mouse support with `set -g mouse on` in your tmux configuration.
- **The game says it needs an interactive terminal:** Run `fireflies` in a terminal window, not through a notebook, IDE output panel, or a command whose input/output is redirected.
- **On Windows:** Use WSL and run the game inside a supported terminal.

For the best view, make the terminal window large. The animation uses truecolor, so its colors may look limited in terminals without 24-bit color support.

## License

MIT. See [LICENSE](LICENSE).
