#ifndef RENDER_H #define RENDER_H struct render { int speed; int effect; }; void reset_render(void); int ms_sleep(unsigned int ms); void render_sleep(void); void write_color(int fd, int color); int send_file(int fd, char *filename); void send_goto(int fd, int x, int y); int send_file(int fd, int x, int y, char *filename); const char *process_trigger(int fd, const char *cp); void render_effect(int fd, char ch); void render(int fd, const char *string_out, int len); #define TRIGGER "^" // Max limit we'll sleep before ignoring effects/speed. #define SLEEP_LIMIT 30 #endif