2023-08-28 18:52:28 -04:00
|
|
|
/*
|
2023-10-06 13:42:04 -04:00
|
|
|
Copyright (c) 2023 : Ognjen 'xolatile' Milan Robovic
|
|
|
|
|
|
|
|
Xurses is free software! You will redistribute it or modify it under the terms of the GNU General Public License by Free Software Foundation.
|
|
|
|
And when you do redistribute it or modify it, it will use either version 3 of the License, or (at yours truly opinion) any later version.
|
|
|
|
It is distributed in the hope that it will be useful or harmful, it really depends... But no warranty what so ever, seriously. See GNU/GPLv3.
|
|
|
|
*/
|
2023-08-28 18:52:28 -04:00
|
|
|
|
|
|
|
#ifndef XURSES_HEADER
|
|
|
|
#define XURSES_HEADER
|
|
|
|
|
|
|
|
#include <xolatile/xtandard.h>
|
|
|
|
|
2023-10-04 19:34:38 -04:00
|
|
|
extern int curses_active;
|
2023-08-28 18:52:28 -04:00
|
|
|
|
2023-10-04 19:34:38 -04:00
|
|
|
extern void curses_configure (void);
|
|
|
|
extern void curses_synchronize (void);
|
2023-09-20 06:00:37 -04:00
|
|
|
|
2023-10-04 19:34:38 -04:00
|
|
|
extern void curses_bind (int signal, void (* action) (void));
|
|
|
|
extern void curses_unbind (int signal);
|
2023-10-07 00:59:17 -04:00
|
|
|
|
|
|
|
extern void curses_render_cursor (int x, int y);
|
2023-08-28 18:52:28 -04:00
|
|
|
|
2023-10-04 19:34:38 -04:00
|
|
|
extern void curses_render_character (char character, int colour, int effect, int x, int y);
|
|
|
|
extern void curses_render_background (char character, int colour, int effect);
|
2023-08-28 18:52:28 -04:00
|
|
|
|
2023-10-07 00:59:17 -04:00
|
|
|
extern void curses_render_string_limit (char * string, int limit, int colour, int effect, int x, int y);
|
|
|
|
extern void curses_render_number_limit (int number, int limit, int colour, int effect, int x, int y);
|
|
|
|
|
|
|
|
extern void curses_render_string (char * string, int colour, int effect, int x, int y);
|
|
|
|
extern void curses_render_number (int number, int colour, int effect, int x, int y);
|
|
|
|
|
2023-08-28 18:52:28 -04:00
|
|
|
#endif
|