Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maaslalani/draw
Draw in your terminal
https://github.com/maaslalani/draw
Last synced: 3 days ago
JSON representation
Draw in your terminal
- Host: GitHub
- URL: https://github.com/maaslalani/draw
- Owner: maaslalani
- License: mit
- Created: 2022-04-14T01:48:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T19:11:03.000Z (11 months ago)
- Last Synced: 2024-10-16T19:19:26.469Z (19 days ago)
- Language: Go
- Size: 936 KB
- Stars: 461
- Watchers: 6
- Forks: 18
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- fucking-Awesome-Linux-Software - ![Open-Source Software - Draw in your terminal. (Command Line Utilities / Tools)
- Awesome-Linux-Software - ![Open-Source Software - Draw in your terminal. (Command Line Utilities / Tools)
README
# Draw
`draw` is an simple drawing tool in the terminal.
Hold your mouse down and move it across the screen to draw anything you want!
### Installation
```
go install github.com/maaslalani/draw@latest
```### Usage
```
draw
```### Boxes
Draw boxes by clicking and dragging the right mouse button, releasing the
right mouse button will draw the box.Voila! You have a box drawn where you want it.
### Text Insertion
Tap the right mouse button to set an anchor for inserting text and type away!
Press ESC to exit insert mode.
### Saving Drawings
`draw` automatically saves your latest masterpiece to `/tmp/draw.txt` by
default. You can change this location by setting the environment variable
`$DRAW_FILE`.```
export DRAW_FILE=/path/to/draw.txt
```To view this drawing use `cat` or `mv` the drawing to somewhere more permanent.
If you already know you want to save the drawing, run `draw` with the file path
where you want to save the drawing: `draw masterpiece.txt`.### Controls
* ctrl+c to exit.
* Press any key to draw with that character.
* Press 1 for red.
* Press 2 for green.
* Press 3 for yellow.
* Press 4 for blue.
* Press 5 for magenta.
* Press 6 for cyan.
* Press 7 for gray.
* Press Alt+0 - Alt+9 to draw with digits.