cli-draw (Made with lightcode)
A small terminal drawing tool with mouse support.
Clone the repo:
git clone https://github.com/Kartik-2239/cli-draw.git
cd cli-drawInstall with uv:
uv syncRun it:
uv run cli-drawOpen an existing drawing:
uv run cli-draw artwork.txtSet the save path:
uv run cli-draw --save output.txtOpen a file and save back to another path:
uv run cli-draw artwork.txt --save output.txt- Left click: draw
- Left click + drag: draw continuously
0to7: change colorb: change brush characterc: clearu: undos: savey: copy ANSI-colored output to clipboardqorEsc: quit
- Files saved by the app keep ANSI colors.
- If mouse drag does not work, use a terminal with mouse reporting enabled.
The app stores config here:
~/.cli-draw/config.jsonIt is created automatically the first time you run cli-draw.
Example:
{
"colors": [
{ "id": 0, "name": "black", "hex": "#000000" },
{ "id": 1, "name": "red", "hex": "#FF0000" },
{ "id": 2, "name": "green", "hex": "#00FF00" },
{ "id": 3, "name": "yellow", "hex": "#FFFF00" },
{ "id": 4, "name": "blue", "hex": "#0000FF" },
{ "id": 5, "name": "magenta", "hex": "#FF00FF" },
{ "id": 6, "name": "cyan", "hex": "#00FFFF" },
{ "id": 7, "name": "white", "hex": "#FFFFFF" }
],
"brushes": ["#", "*", ".", " ", "o", "x", "@", "+"]
}You can change:
colors: the 8 colors used by keys0to7brushes: the default brush characters available in the config
Color values should be hex strings like #FF0000.
