1
0
Fork
You've already forked CursedTools
0
forked from smglaze/CursedTools
A collection of programs to enhance ncurses.
  • C++ 100%
2026年01月24日 08:05:44 -05:00
ColorFile fixed stamp bug where is fails to stamp chars from the middle of files 2026年01月24日 08:01:53 -05:00
learning adding gitignore 2026年01月08日 12:21:06 -05:00
Stamp fixed stamp bug where is fails to stamp chars from the middle of files 2026年01月24日 08:05:44 -05:00
.gitignore adding gitignore 2026年01月08日 12:21:06 -05:00
README.md fixed README file spelling. i believe in good READMEs 2026年01月12日 08:19:22 -05:00

Cursed Tools

Enhancing the graphical capabilities of ncurses

This repo contains multiple programs to make complicated ncurses graphics easier to implement.

Stamp

install to your ~/.local/lib/gcc/include/

stamp() is a rectration of the pygame blit() function but rewritten for ncurses. stamp() allows for easy desplay of text art from separate files to keep the graphics separate from the program.

stamp(y, x, height, length, ypos, xpos, file)
or
stamp(y, x, height, length, ypos, xpos, file, win)

y - the number of the first row in the art file to be stamped x - the number of the first column in the art file to be stamped

height - the number of rows in the art file to be stamped length - the number of columns in the art file to be stamped

ypos - the y postition for the top left corner of the art to be stamped xpos - the x postition for the top left corner of the art to be stamped

win - (OPTIONAL) the window you would like to stamp into

additional info about stamp():

stamp() works on its own for basic ASCII charicters.
UTF-8 chars have to be enabled by #include <locale> and declaring setlocale(LC_ALL, "") at the top of the main function.