# tnap - Let's take a nap 💤
![Demo](./examples/demo.gif)
`tnap` is a screen saver for the terminal.
You can rest the terminal in a secure.
[![Lang](https://img.shields.io/badge/Rust-1.26+-blue.svg?logo=rust)](https://www.rust-lang.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
![Release](https://img.shields.io/badge/Release-v0.1.0-blue.svg)
Features
- [x] Display images in the terminal and use it as a screen saver
- [x] Convert images to ASCII art
- [x] Use images generated using DALL-E 3
- [x] Generate by simply specifying a key in
config.toml
without thinking a prompt
- [x] Of course, you can also generate images by specifying a prompt
Screenshots
Usage
Option |
Description |
Type |
Required? |
--theme <THEME> |
Use the sample theme without generating images |
String |
No |
--key <KEY> |
Generate images by a default prompt in config.toml |
String |
No |
--prompt <PROMPT> |
Generate images with a user's prompt |
String |
No |
--ascii |
Convert an image to ASCII art |
bool |
No |
Installation
You can install tnap by following these steps:
gh repo clone pigeon-sable/tnap
cd tnap
cargo install --path .
export TNAP_ROOT=`pwd`
Acknowledgements
License
🪪 Apache-2.0
Authors