A ncurses based ascii-art editor
03/09/2022: added resize mode.
The only dep is ncurses 5.0 or higher.
Compile:
$ makeRun:
$ ./bin/cursesart file- 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.
- i, j, k, l: set the new width and height.
- Enter: accept changes.
- Esc: discard changes.
- 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.
$ 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.
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.
