https://github.com/codigoymate/curses-art
ncurses ascii art editor
https://github.com/codigoymate/curses-art
art ascii ascii-art c ncurses
Last synced: 10 months ago
JSON representation
ncurses ascii art editor
- Host: GitHub
- URL: https://github.com/codigoymate/curses-art
- Owner: codigoymate
- License: gpl-3.0
- Created: 2022-02-17T14:09:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T23:50:37.000Z (over 2 years ago)
- Last Synced: 2025-01-21T08:25:41.709Z (over 1 year ago)
- Topics: art, ascii, ascii-art, c, ncurses
- Language: C
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curses-art
*A ncurses based ascii-art editor*
---

---
*03/09/2022: added resize mode.*
---
#### Dependences
The only dep is ncurses 5.0 or higher.
---
#### Compile and Run
Compile:
```sh
$ make
```
Run:
```sh
$ ./bin/cursesart file
```
---
#### Keys
* **i, j, k, l:** move the cursor through the sheet.
* **Space:** print the current character with the current attribute.
* **Delete, x:** delete the current character at cursor position.
* **w, a, s, d:** Move the character selector on the left toolbar.
* **Up, down, left, right arrows:** move the color/attribute selector on the right toolbar.
* **Ctrl + (i, j, k, l):** move the sheet.
* **I, J, K, L:** Move the drawing relative to the sheet.
* **c:** center the sheet.
* **r:** Resize mode: Open resize mode dialog.
* **v:** show / hide sheet background.
* **F2:** save the file and generates C source.
##### Resize Mode
* **i, j, k, l:** set the new width and height.
* **Enter:** accept changes.
* **Esc:** discard changes.
---
#### Mouse
* **Left click on the sheet:** print current character/attr at mouse position.
* **Right click on the sheet:** delete the current character/attr at mouse position.
---
#### Command line
```sh
$ cursesart FILE -w -h -H
```
* **FILE:** (required) name of the file to edit.
* **-w, --width:** width of the sheet.
* **-h, --height:** height of the sheet.
* **-H, --help:** Show quick cmd line help.
---
#### Saving the file
Press F2 to save the file. curses-art generates a binary file to be reopened later. Also generates a source C language file to export to any ncurses project.