A simple ncurses-based terminal drawing program.
- Draw with multiple colors and symbols
- Based on C programming language and ncurses, so it is very fast and lightweight
- Simple command system
Just run ./ttd
| Key | Action |
|---|---|
| Arrow keys / WASD | Move cursor |
| Space | Draw at cursor |
| Q / E | Previous / Next color |
| O / P | First / Last color |
| Z / C | Previous / Next symbol |
| K / L | First / Last symbol |
| I | Eraser |
| N | Add Pen Size |
| M | Subtract Pen Size |
| B | Reset Pen Size |
| : | Command Mode |
| Esc | Quit Command Mode |
| X | Exit |
:draw— Draw at current position:draw +N— Draw right N times (stop at border):draw -N— Draw left N times (stop at border):draw +*— Draw right until border:draw -*— Draw left until border:draw (N— Draw up N times (stop at border):draw )N— Draw down N times (stop at border):draw (*— Draw up until border:draw )*— Draw down until border:move— Move cursor to (1, 1):move y x— Move cursor to (y, x):quit— Quit the program
Example:
:draw +10
:draw (*
:move 5 10
:quit
Install libncurses5-dev in your computer. Then run: make
It is just a part of my programming learning.