Skip to content

jason80/curses-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

$ make

Run:

$ ./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

$ 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.

About

ncurses ascii art editor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors