Skip to content

Instantly share code, notes, and snippets.

@kaz-utashiro
Last active October 17, 2018 10:47
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaz-utashiro/7853739 to your computer and use it in GitHub Desktop.
Save kaz-utashiro/7853739 to your computer and use it in GitHub Desktop.
#include <unistd.h>
#include <curses.h>
char *sl[] = {
" o o o",
" o ",
" o ____ ",
" -- |OO| ",
" _||__| | ",
" | | ",
"/-O=O O=O-- "
};
int main()
{
int x, y;
initscr();
for (x = COLS - 13; x > 0; x -= 2) {
for (y = 0; y < 7; y++)
mvprintw(y + LINES - 7, x, "%s", sl[y]);
refresh();
usleep(100000);
}
/* endwin(); */
}
@kaz-utashiro
Copy link
Author

sl 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment