draw

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 5 Imported by: 0

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!

Draw

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.

Draw Boxes

Text Insertion

Tap the right mouse button to set an anchor for inserting text and type away! Press ESC to exit insert mode.

Insert Text

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:

cat $DRAW_FILE

To save the drawing somewhere more permanent, use mv.

mv $DRAW_FILE ~/.data/drawings/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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL