- C++ 100%
| ColorFile | fixed stamp bug where is fails to stamp chars from the middle of files | |
| learning | adding gitignore | |
| Stamp | fixed stamp bug where is fails to stamp chars from the middle of files | |
| .gitignore | adding gitignore | |
| README.md | fixed README file spelling. i believe in good READMEs | |
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.